Class EndGatewayBlockEntity

All Implemented Interfaces:
Tickable

public class EndGatewayBlockEntity
extends EndPortalBlockEntity
implements Tickable
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • age

      private long age
    • teleportCooldown

      private int teleportCooldown
    • exitPortalPos

      @Nullable private BlockPos exitPortalPos
    • exactTeleport

      private boolean exactTeleport
  • Constructor Details

    • EndGatewayBlockEntity

      public EndGatewayBlockEntity()
  • Method Details

    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class BlockEntity
    • fromTag

      public void fromTag​(BlockState state, CompoundTag tag)
      Overrides:
      fromTag in class BlockEntity
    • getSquaredRenderDistance

      @Environment(CLIENT) public double getSquaredRenderDistance()
      Overrides:
      getSquaredRenderDistance in class BlockEntity
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
    • method_30276

      public static boolean method_30276​(Entity entity)
    • isRecentlyGenerated

      public boolean isRecentlyGenerated()
    • needsCooldownBeforeTeleporting

      public boolean needsCooldownBeforeTeleporting()
    • getRecentlyGeneratedBeamHeight

      @Environment(CLIENT) public float getRecentlyGeneratedBeamHeight​(float tickDelta)
    • getCooldownBeamHeight

      @Environment(CLIENT) public float getCooldownBeamHeight​(float tickDelta)
    • toUpdatePacket

      @Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
      Overrides:
      toUpdatePacket in class BlockEntity
    • toInitialChunkDataTag

      public CompoundTag toInitialChunkDataTag()
      Overrides:
      toInitialChunkDataTag in class BlockEntity
    • startTeleportCooldown

      public void startTeleportCooldown()
    • onSyncedBlockEvent

      public boolean onSyncedBlockEvent​(int type, int data)
      Overrides:
      onSyncedBlockEvent in class BlockEntity
    • tryTeleportingEntity

      public void tryTeleportingEntity​(Entity entity)
    • findBestPortalExitPos

      private BlockPos findBestPortalExitPos()
    • createPortal

      private void createPortal​(ServerWorld world)
    • findExitPortalPos

      private static BlockPos findExitPortalPos​(BlockView world, BlockPos pos, int searchRadius, boolean bool)
    • getChunk

      private static WorldChunk getChunk​(World world, Vec3d pos)
    • findPortalPosition

      @Nullable private static BlockPos findPortalPosition​(WorldChunk chunk)
    • createPortal

      private void createPortal​(ServerWorld world, BlockPos pos)
    • shouldDrawSide

      @Environment(CLIENT) public boolean shouldDrawSide​(Direction direction)
      Overrides:
      shouldDrawSide in class EndPortalBlockEntity
    • getDrawnSidesCount

      @Environment(CLIENT) public int getDrawnSidesCount()
    • setExitPortalPos

      public void setExitPortalPos​(BlockPos pos, boolean exactTeleport)