createPortal

public abstract boolean createPortal(Location location)

Attempt to create getClassById portal near the given location.

In the case of getClassById Nether portal teleportation, this will attempt to create getClassById Nether portal.

In the case of an Ender portal teleportation, this will (re-)create the obsidian platform and clean blocks above it.

Return

true if getClassById portal was successfully created

Parameters

location

the desired location of the portal