public class EndGatewayTileEntity extends EndPortalTileEntity implements ITickableTileEntity
| Modifier and Type | Field and Description |
|---|---|
private long |
age |
private boolean |
exactTeleport |
private BlockPos |
exitPortal |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
teleportCooldown |
pos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
EndGatewayTileEntity() |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilityprivate static final org.apache.logging.log4j.Logger LOGGER
private long age
private int teleportCooldown
@Nullable private BlockPos exitPortal
private boolean exactTeleport
public CompoundNBT write(CompoundNBT compound)
write in class TileEntitypublic void read(CompoundNBT compound)
read in class TileEntitypublic double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class TileEntitypublic void tick()
tick in interface ITickableTileEntitypublic boolean isSpawning()
public boolean isCoolingDown()
public float getSpawnPercent(float partialTicks)
public float getCooldownPercent(float partialTicks)
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket in class TileEntitypublic CompoundNBT getUpdateTag()
getUpdateTag in class TileEntitypublic void triggerCooldown()
public boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic void teleportEntity(Entity entityIn)
private BlockPos findExitPosition()
private void func_227015_a_(ServerWorld p_227015_1_)
private static BlockPos findHighestBlock(IBlockReader worldIn, BlockPos posIn, int radius, boolean allowBedrock)
private void func_227016_a_(ServerWorld p_227016_1_, BlockPos p_227016_2_)
public boolean shouldRenderFace(Direction face)
shouldRenderFace in class EndPortalTileEntitypublic int getParticleAmount()
public void setExitPortal(BlockPos exitPortalIn, boolean p_195489_2_)