Class EndGatewayBlockEntity
- Mappings:
- Namespace - Name - named - net/minecraft/block/entity/EndGatewayBlockEntity- intermediary - net/minecraft/class_2643- official - dvt
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntityBlockEntity.ComponentsAccess
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate longprivate booleanprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Loggerprivate intFields inherited from class net.minecraft.block.entity.BlockEntitypos, removed, world
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidclientTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) private static voidcreatePortal(ServerWorld world, BlockPos pos, EndGatewayFeatureConfig config) private static BlockPosfindBestPortalExitPos(World world, BlockPos pos) private static BlockPosfindExitPortalPos(BlockView world, BlockPos pos, int searchRadius, boolean force) findPortalPosition(WorldChunk chunk) private static Vec3dfindTeleportLocation(ServerWorld world, BlockPos pos) private static WorldChunkfloatgetCooldownBeamHeight(float tickDelta) intgetOrCreateExitPortalPos(ServerWorld world, BlockPos pos) floatgetRecentlyGeneratedBeamHeight(float tickDelta) private static booleanisChunkEmpty(ServerWorld world, Vec3d pos) booleanbooleanbooleanonSyncedBlockEvent(int type, int data) If this block entity's block extendsBlockWithEntity, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int).protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.static voidserverTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) voidsetExitPortalPos(BlockPos pos, boolean exactTeleport) private static BlockPossetupExitPortalLocation(ServerWorld world, BlockPos pos) Finds teleport location and creates an island to teleport to (if there is none).booleanshouldDrawSide(Direction direction) static voidstartTeleportCooldown(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntityaddComponents, cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/block/entity/EndGatewayBlockEntity;LOGGER:Lorg/slf4j/Logger;- intermediary - field_12133- Lnet/minecraft/class_2643;field_12133:Lorg/slf4j/Logger;- official - a- Ldvt;a:Lorg/slf4j/Logger;
 
- 
field_31368private static final int field_31368- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31368- Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31368:I- intermediary - field_31368- Lnet/minecraft/class_2643;field_31368:I- official - b- Ldvt;b:I
 
- 
field_31369private static final int field_31369- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31369- Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31369:I- intermediary - field_31369- Lnet/minecraft/class_2643;field_31369:I- official - c- Ldvt;c:I
 
- 
field_31370private static final int field_31370- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31370- Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31370:I- intermediary - field_31370- Lnet/minecraft/class_2643;field_31370:I- official - d- Ldvt;d:I
 
- 
field_31371private static final int field_31371- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31371- Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31371:I- intermediary - field_31371- Lnet/minecraft/class_2643;field_31371:I- official - e- Ldvt;e:I
 
- 
field_31372private static final int field_31372- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31372- Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31372:I- intermediary - field_31372- Lnet/minecraft/class_2643;field_31372:I- official - f- Ldvt;f:I
 
- 
ageprivate long age- Mappings:
- Namespace - Name - Mixin selector - named - age- Lnet/minecraft/block/entity/EndGatewayBlockEntity;age:J- intermediary - field_12131- Lnet/minecraft/class_2643;field_12131:J- official - g- Ldvt;g:J
 
- 
teleportCooldownprivate int teleportCooldown- Mappings:
- Namespace - Name - Mixin selector - named - teleportCooldown- Lnet/minecraft/block/entity/EndGatewayBlockEntity;teleportCooldown:I- intermediary - field_12130- Lnet/minecraft/class_2643;field_12130:I- official - h- Ldvt;h:I
 
- 
exitPortalPos- Mappings:
- Namespace - Name - Mixin selector - named - exitPortalPos- Lnet/minecraft/block/entity/EndGatewayBlockEntity;exitPortalPos:Lnet/minecraft/util/math/BlockPos;- intermediary - field_12132- Lnet/minecraft/class_2643;field_12132:Lnet/minecraft/class_2338;- official - i- Ldvt;i:Lji;
 
- 
exactTeleportprivate boolean exactTeleport- Mappings:
- Namespace - Name - Mixin selector - named - exactTeleport- Lnet/minecraft/block/entity/EndGatewayBlockEntity;exactTeleport:Z- intermediary - field_12129- Lnet/minecraft/class_2643;field_12129:Z- official - j- Ldvt;j:Z
 
 
- 
- 
Constructor Details- 
EndGatewayBlockEntity- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/entity/EndPortalBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V- intermediary - <init>- Lnet/minecraft/class_2640;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- official - <init>- Ldvu;<init>(Lji;Ldwy;)V
 
 
- 
- 
Method Details- 
writeNbtWrites data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity. - Overrides:
- writeNbtin class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - writeNbt- Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V- intermediary - method_11007- Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V- official - b- Ldua;b(Ltq;Ljt$a;)V
 
- 
readNbtReads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity. nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
- readNbtin class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - readNbt- Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V- intermediary - method_11014- Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V- official - a- Ldua;a(Ltq;Ljt$a;)V
 
- 
clientTickpublic static void clientTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
- Namespace - Name - Mixin selector - named - clientTick- Lnet/minecraft/block/entity/EndGatewayBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V- intermediary - method_31700- Lnet/minecraft/class_2643;method_31700(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V- official - a- Ldvt;a(Ldgj;Lji;Ldwy;Ldvt;)V
 
- 
serverTickpublic static void serverTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
- Namespace - Name - Mixin selector - named - serverTick- Lnet/minecraft/block/entity/EndGatewayBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V- intermediary - method_31702- Lnet/minecraft/class_2643;method_31702(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V- official - b- Ldvt;b(Ldgj;Lji;Ldwy;Ldvt;)V
 
- 
isRecentlyGeneratedpublic boolean isRecentlyGenerated()- Mappings:
- Namespace - Name - Mixin selector - named - isRecentlyGenerated- Lnet/minecraft/block/entity/EndGatewayBlockEntity;isRecentlyGenerated()Z- intermediary - method_11420- Lnet/minecraft/class_2643;method_11420()Z- official - b- Ldvt;b()Z
 
- 
needsCooldownBeforeTeleportingpublic boolean needsCooldownBeforeTeleporting()- Mappings:
- Namespace - Name - Mixin selector - named - needsCooldownBeforeTeleporting- Lnet/minecraft/block/entity/EndGatewayBlockEntity;needsCooldownBeforeTeleporting()Z- intermediary - method_11421- Lnet/minecraft/class_2643;method_11421()Z- official - c- Ldvt;c()Z
 
- 
getRecentlyGeneratedBeamHeightpublic float getRecentlyGeneratedBeamHeight(float tickDelta) - Mappings:
- Namespace - Name - Mixin selector - named - getRecentlyGeneratedBeamHeight- Lnet/minecraft/block/entity/EndGatewayBlockEntity;getRecentlyGeneratedBeamHeight(F)F- intermediary - method_11417- Lnet/minecraft/class_2643;method_11417(F)F- official - a- Ldvt;a(F)F
 
- 
getCooldownBeamHeightpublic float getCooldownBeamHeight(float tickDelta) - Mappings:
- Namespace - Name - Mixin selector - named - getCooldownBeamHeight- Lnet/minecraft/block/entity/EndGatewayBlockEntity;getCooldownBeamHeight(F)F- intermediary - method_11412- Lnet/minecraft/class_2643;method_11412(F)F- official - b- Ldvt;b(F)F
 
- 
toUpdatePacketDescription copied from class:BlockEntityReturns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.If the data returned by initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this). The NBT will be passed toBlockEntity.readNbt(net.minecraft.nbt.NbtCompound, net.minecraft.registry.RegistryWrapper.WrapperLookup)on the client."Observable state" is a state that clients can observe without specific interaction. For example, CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To sync block entity data using this method, use serverWorld.getChunkManager().markForUpdate(this.getPos());.- Overrides:
- toUpdatePacketin class- BlockEntity
- Returns:
- the packet to send to nearby players when the block entity's observable
 state changes, or nullto not send the packet
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - toUpdatePacket- Lnet/minecraft/block/entity/EndGatewayBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;- intermediary - method_38253- Lnet/minecraft/class_2643;method_38253()Lnet/minecraft/class_2622;- official - d- Ldvt;d()Labs;
 
- 
toInitialChunkDataNbtReturns the serialized state of this block entity that is observable by clients.This is sent alongside the initial chunk data, as well as when the block entity implements toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket."Observable state" is a state that clients can observe without specific interaction. For example, CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To send all NBT data of this block entity saved to disk, return BlockEntity.createNbt(net.minecraft.registry.RegistryWrapper.WrapperLookup).- Overrides:
- toInitialChunkDataNbtin class- BlockEntity
- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - toInitialChunkDataNbt- Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;- intermediary - method_16887- Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;- official - a- Ldua;a(Ljt$a;)Ltq;
 
- 
startTeleportCooldownpublic static void startTeleportCooldown(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
- Namespace - Name - Mixin selector - named - startTeleportCooldown- Lnet/minecraft/block/entity/EndGatewayBlockEntity;startTeleportCooldown(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V- intermediary - method_11411- Lnet/minecraft/class_2643;method_11411(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V- official - c- Ldvt;c(Ldgj;Lji;Ldwy;Ldvt;)V
 
- 
onSyncedBlockEventpublic boolean onSyncedBlockEvent(int type, int data) If this block entity's block extendsBlockWithEntity, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int).- Overrides:
- onSyncedBlockEventin class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onSyncedBlockEvent- Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z- intermediary - method_11004- Lnet/minecraft/class_2586;method_11004(II)Z- official - a_- Ldua;a_(II)Z
 
- 
getOrCreateExitPortalPos- Mappings:
- Namespace - Name - Mixin selector - named - getOrCreateExitPortalPos- Lnet/minecraft/block/entity/EndGatewayBlockEntity;getOrCreateExitPortalPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;- intermediary - method_60787- Lnet/minecraft/class_2643;method_60787(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;- official - a- Ldvt;a(Lard;Lji;)Lfbb;
 
- 
findBestPortalExitPos- Mappings:
- Namespace - Name - Mixin selector - named - findBestPortalExitPos- Lnet/minecraft/block/entity/EndGatewayBlockEntity;findBestPortalExitPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_11419- Lnet/minecraft/class_2643;method_11419(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;- official - a- Ldvt;a(Ldgj;Lji;)Lji;
 
- 
setupExitPortalLocationFinds teleport location and creates an island to teleport to (if there is none).This does not create an exit portal. - Returns:
- the position of the exit portal
- Mappings:
- Namespace - Name - Mixin selector - named - setupExitPortalLocation- Lnet/minecraft/block/entity/EndGatewayBlockEntity;setupExitPortalLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_31699- Lnet/minecraft/class_2643;method_31699(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;- official - b- Ldvt;b(Lard;Lji;)Lji;
 
- 
findTeleportLocation- Mappings:
- Namespace - Name - Mixin selector - named - findTeleportLocation- Lnet/minecraft/block/entity/EndGatewayBlockEntity;findTeleportLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;- intermediary - method_31701- Lnet/minecraft/class_2643;method_31701(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;- official - c- Ldvt;c(Lard;Lji;)Lfbb;
 
- 
isChunkEmpty- Mappings:
- Namespace - Name - Mixin selector - named - isChunkEmpty- Lnet/minecraft/block/entity/EndGatewayBlockEntity;isChunkEmpty(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z- intermediary - method_31698- Lnet/minecraft/class_2643;method_31698(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z- official - a- Ldvt;a(Lard;Lfbb;)Z
 
- 
findExitPortalPosprivate static BlockPos findExitPortalPos(BlockView world, BlockPos pos, int searchRadius, boolean force) - Mappings:
- Namespace - Name - Mixin selector - named - findExitPortalPos- Lnet/minecraft/block/entity/EndGatewayBlockEntity;findExitPortalPos(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;IZ)Lnet/minecraft/util/math/BlockPos;- intermediary - method_11410- Lnet/minecraft/class_2643;method_11410(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;- official - a- Ldvt;a(Ldfo;Lji;IZ)Lji;
 
- 
getChunk- Mappings:
- Namespace - Name - Mixin selector - named - getChunk- Lnet/minecraft/block/entity/EndGatewayBlockEntity;getChunk(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/world/chunk/WorldChunk;- intermediary - method_11414- Lnet/minecraft/class_2643;method_11414(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;)Lnet/minecraft/class_2818;- official - a- Ldvt;a(Ldgj;Lfbb;)Ldzd;
 
- 
findPortalPosition- Mappings:
- Namespace - Name - Mixin selector - named - findPortalPosition- Lnet/minecraft/block/entity/EndGatewayBlockEntity;findPortalPosition(Lnet/minecraft/world/chunk/WorldChunk;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_11413- Lnet/minecraft/class_2643;method_11413(Lnet/minecraft/class_2818;)Lnet/minecraft/class_2338;- official - a- Ldvt;a(Ldzd;)Lji;
 
- 
createPortal- Mappings:
- Namespace - Name - Mixin selector - named - createPortal- Lnet/minecraft/block/entity/EndGatewayBlockEntity;createPortal(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/EndGatewayFeatureConfig;)V- intermediary - method_11416- Lnet/minecraft/class_2643;method_11416(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_3018;)V- official - a- Ldvt;a(Lard;Lji;Leic;)V
 
- 
shouldDrawSide- Overrides:
- shouldDrawSidein class- EndPortalBlockEntity
- Mappings:
- Namespace - Name - Mixin selector - named - shouldDrawSide- Lnet/minecraft/block/entity/EndPortalBlockEntity;shouldDrawSide(Lnet/minecraft/util/math/Direction;)Z- intermediary - method_11400- Lnet/minecraft/class_2640;method_11400(Lnet/minecraft/class_2350;)Z- official - a- Ldvu;a(Ljn;)Z
 
- 
getDrawnSidesCountpublic int getDrawnSidesCount()- Mappings:
- Namespace - Name - Mixin selector - named - getDrawnSidesCount- Lnet/minecraft/block/entity/EndGatewayBlockEntity;getDrawnSidesCount()I- intermediary - method_11415- Lnet/minecraft/class_2643;method_11415()I- official - f- Ldvt;f()I
 
- 
setExitPortalPos- Mappings:
- Namespace - Name - Mixin selector - named - setExitPortalPos- Lnet/minecraft/block/entity/EndGatewayBlockEntity;setExitPortalPos(Lnet/minecraft/util/math/BlockPos;Z)V- intermediary - method_11418- Lnet/minecraft/class_2643;method_11418(Lnet/minecraft/class_2338;Z)V- official - a- Ldvt;a(Lji;Z)V
 
 
-