Class EndGatewayTileEntity

    • Field Detail

      • 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 Detail

      • EndGatewayTileEntity

        public EndGatewayTileEntity()
    • Method Detail

      • 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_)
      • 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_)
      • findValidSpawnInChunk

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

        private void createExitPortal​(ServerWorld p_227016_1_,
                                      BlockPos p_227016_2_)
      • getParticleAmount

        public int getParticleAmount()
      • setExitPosition

        public void setExitPosition​(BlockPos p_195489_1_,
                                    boolean p_195489_2_)