Class EndGatewayBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/EndGatewayBlockEntityintermediary net/minecraft/class_2643official dqw
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
Field Summary
FieldsModifier 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.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanTeleport(Entity entity) static 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) intfloatgetRecentlyGeneratedBeamHeight(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 registryLookup) 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) private static voidstartTeleportCooldown(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registryLookup) 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.static voidtryTeleportingEntity(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, copyItemDataRequiresOperator, 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, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/block/entity/EndGatewayBlockEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_12133Lnet/minecraft/class_2643;field_12133:Lorg/slf4j/Logger;official aLdqw;a:Lorg/slf4j/Logger;
-
field_31368
private static final int field_31368- See Also:
- Mappings:
Namespace Name Mixin selector named field_31368Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31368:Iintermediary field_31368Lnet/minecraft/class_2643;field_31368:Iofficial bLdqw;b:I
-
field_31369
private static final int field_31369- See Also:
- Mappings:
Namespace Name Mixin selector named field_31369Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31369:Iintermediary field_31369Lnet/minecraft/class_2643;field_31369:Iofficial cLdqw;c:I
-
field_31370
private static final int field_31370- See Also:
- Mappings:
Namespace Name Mixin selector named field_31370Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31370:Iintermediary field_31370Lnet/minecraft/class_2643;field_31370:Iofficial dLdqw;d:I
-
field_31371
private static final int field_31371- See Also:
- Mappings:
Namespace Name Mixin selector named field_31371Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31371:Iintermediary field_31371Lnet/minecraft/class_2643;field_31371:Iofficial eLdqw;e:I
-
field_31372
private static final int field_31372- See Also:
- Mappings:
Namespace Name Mixin selector named field_31372Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31372:Iintermediary field_31372Lnet/minecraft/class_2643;field_31372:Iofficial fLdqw;f:I
-
age
private long age- Mappings:
Namespace Name Mixin selector named ageLnet/minecraft/block/entity/EndGatewayBlockEntity;age:Jintermediary field_12131Lnet/minecraft/class_2643;field_12131:Jofficial gLdqw;g:J
-
teleportCooldown
private int teleportCooldown- Mappings:
Namespace Name Mixin selector named teleportCooldownLnet/minecraft/block/entity/EndGatewayBlockEntity;teleportCooldown:Iintermediary field_12130Lnet/minecraft/class_2643;field_12130:Iofficial hLdqw;h:I
-
exitPortalPos
- Mappings:
Namespace Name Mixin selector named exitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;exitPortalPos:Lnet/minecraft/util/math/BlockPos;intermediary field_12132Lnet/minecraft/class_2643;field_12132:Lnet/minecraft/class_2338;official iLdqw;i:Liz;
-
exactTeleport
private boolean exactTeleport- Mappings:
Namespace Name Mixin selector named exactTeleportLnet/minecraft/block/entity/EndGatewayBlockEntity;exactTeleport:Zintermediary field_12129Lnet/minecraft/class_2643;field_12129:Zofficial jLdqw;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;)Vintermediary <init>Lnet/minecraft/class_2640;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldqx;<init>(Liz;Ldsb;)V
-
-
Method Details
-
writeNbt
Writes 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 classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdpg;b(Lur;Ljk$a;)V
-
readNbt
Reads 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 classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdpg;a(Lur;Ljk$a;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named clientTickLnet/minecraft/block/entity/EndGatewayBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)Vintermediary method_31700Lnet/minecraft/class_2643;method_31700(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vofficial aLdqw;a(Ldbx;Liz;Ldsb;Ldqw;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/EndGatewayBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)Vintermediary method_31702Lnet/minecraft/class_2643;method_31702(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vofficial bLdqw;b(Ldbx;Liz;Ldsb;Ldqw;)V
-
canTeleport
- Mappings:
Namespace Name Mixin selector named canTeleportLnet/minecraft/block/entity/EndGatewayBlockEntity;canTeleport(Lnet/minecraft/entity/Entity;)Zintermediary method_30276Lnet/minecraft/class_2643;method_30276(Lnet/minecraft/class_1297;)Zofficial aLdqw;a(Lbst;)Z
-
isRecentlyGenerated
public boolean isRecentlyGenerated()- Mappings:
Namespace Name Mixin selector named isRecentlyGeneratedLnet/minecraft/block/entity/EndGatewayBlockEntity;isRecentlyGenerated()Zintermediary method_11420Lnet/minecraft/class_2643;method_11420()Zofficial bLdqw;b()Z
-
needsCooldownBeforeTeleporting
public boolean needsCooldownBeforeTeleporting()- Mappings:
Namespace Name Mixin selector named needsCooldownBeforeTeleportingLnet/minecraft/block/entity/EndGatewayBlockEntity;needsCooldownBeforeTeleporting()Zintermediary method_11421Lnet/minecraft/class_2643;method_11421()Zofficial cLdqw;c()Z
-
getRecentlyGeneratedBeamHeight
public float getRecentlyGeneratedBeamHeight(float tickDelta) - Mappings:
Namespace Name Mixin selector named getRecentlyGeneratedBeamHeightLnet/minecraft/block/entity/EndGatewayBlockEntity;getRecentlyGeneratedBeamHeight(F)Fintermediary method_11417Lnet/minecraft/class_2643;method_11417(F)Fofficial aLdqw;a(F)F
-
getCooldownBeamHeight
public float getCooldownBeamHeight(float tickDelta) - Mappings:
Namespace Name Mixin selector named getCooldownBeamHeightLnet/minecraft/block/entity/EndGatewayBlockEntity;getCooldownBeamHeight(F)Fintermediary method_11412Lnet/minecraft/class_2643;method_11412(F)Fofficial bLdqw;b(F)F
-
toUpdatePacket
Description 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 classBlockEntity- 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 toUpdatePacketLnet/minecraft/block/entity/EndGatewayBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_38253Lnet/minecraft/class_2643;method_38253()Lnet/minecraft/class_2622;official dLdqw;d()Laco;
-
toInitialChunkDataNbt
Returns 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 classBlockEntity- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_16887Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLdpg;a(Ljk$a;)Lur;
-
startTeleportCooldown
private static void startTeleportCooldown(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named startTeleportCooldownLnet/minecraft/block/entity/EndGatewayBlockEntity;startTeleportCooldown(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)Vintermediary method_11411Lnet/minecraft/class_2643;method_11411(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vofficial cLdqw;c(Ldbx;Liz;Ldsb;Ldqw;)V
-
onSyncedBlockEvent
public 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 classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Zofficial a_Ldpg;a_(II)Z
-
tryTeleportingEntity
public static void tryTeleportingEntity(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named tryTeleportingEntityLnet/minecraft/block/entity/EndGatewayBlockEntity;tryTeleportingEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)Vintermediary method_11409Lnet/minecraft/class_2643;method_11409(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1297;Lnet/minecraft/class_2643;)Vofficial aLdqw;a(Ldbx;Liz;Ldsb;Lbst;Ldqw;)V
-
findBestPortalExitPos
- Mappings:
Namespace Name Mixin selector named findBestPortalExitPosLnet/minecraft/block/entity/EndGatewayBlockEntity;findBestPortalExitPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_11419Lnet/minecraft/class_2643;method_11419(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official aLdqw;a(Ldbx;Liz;)Liz;
-
setupExitPortalLocation
Finds 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 setupExitPortalLocationLnet/minecraft/block/entity/EndGatewayBlockEntity;setupExitPortalLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_31699Lnet/minecraft/class_2643;method_31699(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official aLdqw;a(Lare;Liz;)Liz;
-
findTeleportLocation
- Mappings:
Namespace Name Mixin selector named findTeleportLocationLnet/minecraft/block/entity/EndGatewayBlockEntity;findTeleportLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;intermediary method_31701Lnet/minecraft/class_2643;method_31701(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;official bLdqw;b(Lare;Liz;)Levq;
-
isChunkEmpty
- Mappings:
Namespace Name Mixin selector named isChunkEmptyLnet/minecraft/block/entity/EndGatewayBlockEntity;isChunkEmpty(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Zintermediary method_31698Lnet/minecraft/class_2643;method_31698(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Zofficial aLdqw;a(Lare;Levq;)Z
-
findExitPortalPos
private static BlockPos findExitPortalPos(BlockView world, BlockPos pos, int searchRadius, boolean force) - Mappings:
Namespace Name Mixin selector named findExitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;findExitPortalPos(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;IZ)Lnet/minecraft/util/math/BlockPos;intermediary method_11410Lnet/minecraft/class_2643;method_11410(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;official aLdqw;a(Ldbd;Liz;IZ)Liz;
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/block/entity/EndGatewayBlockEntity;getChunk(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/world/chunk/WorldChunk;intermediary method_11414Lnet/minecraft/class_2643;method_11414(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;)Lnet/minecraft/class_2818;official aLdqw;a(Ldbx;Levq;)Lduh;
-
findPortalPosition
- Mappings:
Namespace Name Mixin selector named findPortalPositionLnet/minecraft/block/entity/EndGatewayBlockEntity;findPortalPosition(Lnet/minecraft/world/chunk/WorldChunk;)Lnet/minecraft/util/math/BlockPos;intermediary method_11413Lnet/minecraft/class_2643;method_11413(Lnet/minecraft/class_2818;)Lnet/minecraft/class_2338;official aLdqw;a(Lduh;)Liz;
-
createPortal
- Mappings:
Namespace Name Mixin selector named createPortalLnet/minecraft/block/entity/EndGatewayBlockEntity;createPortal(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/EndGatewayFeatureConfig;)Vintermediary method_11416Lnet/minecraft/class_2643;method_11416(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_3018;)Vofficial aLdqw;a(Lare;Liz;Leda;)V
-
shouldDrawSide
- Overrides:
shouldDrawSidein classEndPortalBlockEntity- Mappings:
Namespace Name Mixin selector named shouldDrawSideLnet/minecraft/block/entity/EndPortalBlockEntity;shouldDrawSide(Lnet/minecraft/util/math/Direction;)Zintermediary method_11400Lnet/minecraft/class_2640;method_11400(Lnet/minecraft/class_2350;)Zofficial aLdqx;a(Lje;)Z
-
getDrawnSidesCount
public int getDrawnSidesCount()- Mappings:
Namespace Name Mixin selector named getDrawnSidesCountLnet/minecraft/block/entity/EndGatewayBlockEntity;getDrawnSidesCount()Iintermediary method_11415Lnet/minecraft/class_2643;method_11415()Iofficial fLdqw;f()I
-
setExitPortalPos
- Mappings:
Namespace Name Mixin selector named setExitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;setExitPortalPos(Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_11418Lnet/minecraft/class_2643;method_11418(Lnet/minecraft/class_2338;Z)Vofficial aLdqw;a(Liz;Z)V
-