public interface EndGateway extends BlockState
限定符和类型 | 方法和说明 |
---|---|
Location |
getExitLocation()
Gets the location that entities are teleported to when
entering the gateway portal.
|
boolean |
isExactTeleport()
Gets whether this gateway will teleport entities directly to
the exit location instead of finding a nearby location.
|
void |
setExactTeleport(boolean exact)
Sets whether this gateway will teleport entities directly to
the exit location instead of finding a nearby location.
|
void |
setExitLocation(Location location)
Sets the exit location that entities are teleported to when
they enter the gateway portal.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
Location getExitLocation()
If this block state is not placed the location's world will be null.
void setExitLocation(Location location)
If this block state is not placed the location's world has to be null.
location
- the new exit locationjava.lang.IllegalArgumentException
- for differing worldsboolean isExactTeleport()
void setExactTeleport(boolean exact)
exact
- whether to teleport to the exact location