public interface EndGateway extends TileState
Modifier and Type | Method and Description |
---|---|
long |
getAge()
Gets the age in ticks of the gateway.
|
@Nullable 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(@Nullable Location location)
Sets the exit location that entities are teleported to when
they enter the gateway portal.
|
getPersistentDataContainer
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
@Nullable @Nullable Location getExitLocation()
If this block state is not placed the location's world will be null.
void setExitLocation(@Nullable @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 © 2021. All rights reserved.