Package net.minecraft.block.entity
Class EndGatewayBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EndPortalBlockEntity
net.minecraft.block.entity.EndGatewayBlockEntity
- All Implemented Interfaces:
Tickable
public class EndGatewayBlockEntity extends EndPortalBlockEntity implements Tickable
-
Field Summary
Fields Modifier and Type Field Description private long
age
private boolean
exactTeleport
private BlockPos
exitPortalPos
private static Logger
LOGGER
private int
teleportCooldown
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description EndGatewayBlockEntity()
-
Method Summary
Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPos
-
Field Details
-
LOGGER
-
age
private long age -
teleportCooldown
private int teleportCooldown -
exitPortalPos
-
exactTeleport
private boolean exactTeleport
-
-
Constructor Details
-
EndGatewayBlockEntity
public EndGatewayBlockEntity()
-
-
Method Details
-
toTag
- Overrides:
toTag
in classBlockEntity
-
fromTag
- Overrides:
fromTag
in classBlockEntity
-
getSquaredRenderDistance
@Environment(CLIENT) public double getSquaredRenderDistance()- Overrides:
getSquaredRenderDistance
in classBlockEntity
-
tick
public void tick() -
method_30276
-
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
- Overrides:
toUpdatePacket
in classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in classBlockEntity
-
startTeleportCooldown
public void startTeleportCooldown() -
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEvent
in classBlockEntity
-
tryTeleportingEntity
-
findBestPortalExitPos
-
createPortal
-
findExitPortalPos
-
getChunk
-
findPortalPosition
-
createPortal
-
shouldDrawSide
- Overrides:
shouldDrawSide
in classEndPortalBlockEntity
-
getDrawnSidesCount
@Environment(CLIENT) public int getDrawnSidesCount() -
setExitPortalPos
-