BlockState
, Metadatable
, PersistentDataHolder
, TileState
public interface EndGateway extends TileState
Modifier and Type | Method | Description |
---|---|---|
long |
getAge() |
Gets the age in ticks of the gateway.
|
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 |
setAge(long age) |
Sets the age in ticks of the gateway.
|
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, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
getPersistentDataContainer
@Nullable Location getExitLocation()
If this block state is not placed the location's world will be null.
void setExitLocation(@Nullable Location location)
If this block state is not placed the location's world has to be null.
location
- the new exit locationIllegalArgumentException
- for differing worldsboolean isExactTeleport()
void setExactTeleport(boolean exact)
exact
- whether to teleport to the exact locationlong getAge()
void setAge(long age)
age
- new age in ticksCopyright © 2019. All rights reserved.