public class EndGatewayBlockEntity extends EndPortalBlockEntity implements Tickable
| Modifier and Type | Field and Description |
|---|---|
private long |
age |
private boolean |
exactTeleport |
private BlockPos |
exitPortalPos |
private static Logger |
LOGGER |
private int |
teleportCooldown |
pos, removed, world| Constructor and Description |
|---|
EndGatewayBlockEntity() |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPosprivate static final Logger LOGGER
private long age
private int teleportCooldown
private boolean exactTeleport
public CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntitypublic void fromTag(BlockState state, CompoundTag tag)
fromTag in class BlockEntity@Environment(value=CLIENT) public double getSquaredRenderDistance()
getSquaredRenderDistance in class BlockEntitypublic static boolean method_30276(Entity entity)
public boolean isRecentlyGenerated()
public boolean needsCooldownBeforeTeleporting()
@Environment(value=CLIENT) public float getRecentlyGeneratedBeamHeight(float tickDelta)
@Environment(value=CLIENT) public float getCooldownBeamHeight(float tickDelta)
@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket in class BlockEntitypublic CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag in class BlockEntitypublic void startTeleportCooldown()
public boolean onSyncedBlockEvent(int type,
int data)
onSyncedBlockEvent in class BlockEntitypublic void tryTeleportingEntity(Entity entity)
private BlockPos findBestPortalExitPos()
private void createPortal(ServerWorld world)
private static BlockPos findExitPortalPos(BlockView world, BlockPos pos, int searchRadius, boolean bool)
private static WorldChunk getChunk(World world, Vec3d pos)
@Nullable private static BlockPos findPortalPosition(WorldChunk chunk)
private void createPortal(ServerWorld world, BlockPos pos)
@Environment(value=CLIENT) public boolean shouldDrawSide(Direction direction)
shouldDrawSide in class EndPortalBlockEntity@Environment(value=CLIENT) public int getDrawnSidesCount()
public void setExitPortalPos(BlockPos pos, boolean exactTeleport)