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, world
INFINITE_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, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
private 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 TileEntity
public void read(CompoundNBT compound)
read
in class TileEntity
public double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared
in class TileEntity
public void tick()
tick
in interface ITickableTileEntity
public boolean isSpawning()
public boolean isCoolingDown()
public float getSpawnPercent(float partialTicks)
public float getCooldownPercent(float partialTicks)
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public void triggerCooldown()
public boolean receiveClientEvent(int id, int type)
receiveClientEvent
in class TileEntity
public 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 EndPortalTileEntity
public int getParticleAmount()
public void setExitPortal(BlockPos exitPortalIn, boolean p_195489_2_)