public class TileEntityEndGateway extends TileEntityEndPortal implements ITickable
| 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 |
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world| Constructor and Description |
|---|
TileEntityEndGateway() |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateprivate static final org.apache.logging.log4j.Logger LOGGER
private long age
private int teleportCooldown
private BlockPos exitPortal
private boolean exactTeleport
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT in class TileEntitypublic void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntitypublic double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class TileEntitypublic boolean isSpawning()
public boolean isCoolingDown()
public float getSpawnPercent(float p_184302_1_)
public float getCooldownPercent(float p_184305_1_)
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class TileEntitypublic NBTTagCompound 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 findExitPortal()
private static BlockPos findHighestBlock(World p_184308_0_, BlockPos p_184308_1_, int p_184308_2_, boolean p_184308_3_)
private void createExitPortal(BlockPos posIn)
public boolean shouldRenderFace(EnumFacing p_184313_1_)
shouldRenderFace in class TileEntityEndPortalpublic int getParticleAmount()
public void setExactPosition(BlockPos p_190603_1_)