Class EndGatewayTileEntity

All Implemented Interfaces:
ITickableTileEntity, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>

public class EndGatewayTileEntity extends EndPortalTileEntity implements ITickableTileEntity
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • age

      private long age
    • teleportCooldown

      private int teleportCooldown
    • exitPortal

      @Nullable private BlockPos exitPortal
    • exactTeleport

      private boolean exactTeleport
  • Constructor Details

    • EndGatewayTileEntity

      public EndGatewayTileEntity()
  • Method Details

    • save

      public CompoundNBT save(CompoundNBT p_189515_1_)
      Overrides:
      save in class TileEntity
    • load

      public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
      Overrides:
      load in class TileEntity
    • getViewDistance

      public double getViewDistance()
      Overrides:
      getViewDistance in class TileEntity
    • tick

      public void tick()
      Specified by:
      tick in interface ITickableTileEntity
    • canEntityTeleport

      public static boolean canEntityTeleport(Entity p_242690_0_)
    • isSpawning

      public boolean isSpawning()
    • isCoolingDown

      public boolean isCoolingDown()
    • getSpawnPercent

      public float getSpawnPercent(float p_195497_1_)
    • getCooldownPercent

      public float getCooldownPercent(float p_195491_1_)
    • getUpdatePacket

      @Nullable public SUpdateTileEntityPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class TileEntity
    • getUpdateTag

      public CompoundNBT getUpdateTag()
      Overrides:
      getUpdateTag in class TileEntity
    • triggerCooldown

      public void triggerCooldown()
    • triggerEvent

      public boolean triggerEvent(int p_145842_1_, int p_145842_2_)
      Overrides:
      triggerEvent in class TileEntity
    • teleportEntity

      public void teleportEntity(Entity p_195496_1_)
    • findExitPosition

      private BlockPos findExitPosition()
    • findExitPortal

      private void findExitPortal(ServerWorld p_227015_1_)
    • findTallestBlock

      private static BlockPos findTallestBlock(IBlockReader p_195494_0_, BlockPos p_195494_1_, int p_195494_2_, boolean p_195494_3_)
    • getChunk

      private static Chunk getChunk(World p_195495_0_, Vector3d p_195495_1_)
    • findValidSpawnInChunk

      @Nullable private static BlockPos findValidSpawnInChunk(Chunk p_195498_0_)
    • createExitPortal

      private void createExitPortal(ServerWorld p_227016_1_, BlockPos p_227016_2_)
    • shouldRenderFace

      public boolean shouldRenderFace(Direction p_184313_1_)
      Overrides:
      shouldRenderFace in class EndPortalTileEntity
    • getParticleAmount

      public int getParticleAmount()
    • setExitPosition

      public void setExitPosition(BlockPos p_195489_1_, boolean p_195489_2_)