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
- Mappings:
Namespace Name official ctuintermediary net/minecraft/class_2643named net/minecraft/block/entity/EndGatewayBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate booleanprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final org.slf4j.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) voidreadNbt(NbtCompound nbt) 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) Serializes the state of this block entity that is observable by clients.Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes.static voidtryTeleportingEntity(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official aLctu;a:Lorg/slf4j/Logger;intermediary field_12133Lnet/minecraft/class_2643;field_12133:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/block/entity/EndGatewayBlockEntity;LOGGER:Lorg/slf4j/Logger;
-
field_31368
private static final int field_31368- See Also:
- Mappings:
Namespace Name Mixin selector official bLctu;b:Iintermediary field_31368Lnet/minecraft/class_2643;field_31368:Inamed field_31368Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31368:I
-
field_31369
private static final int field_31369- See Also:
- Mappings:
Namespace Name Mixin selector official cLctu;c:Iintermediary field_31369Lnet/minecraft/class_2643;field_31369:Inamed field_31369Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31369:I
-
field_31370
private static final int field_31370- See Also:
- Mappings:
Namespace Name Mixin selector official dLctu;d:Iintermediary field_31370Lnet/minecraft/class_2643;field_31370:Inamed field_31370Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31370:I
-
field_31371
private static final int field_31371- See Also:
- Mappings:
Namespace Name Mixin selector official eLctu;e:Iintermediary field_31371Lnet/minecraft/class_2643;field_31371:Inamed field_31371Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31371:I
-
field_31372
private static final int field_31372- See Also:
- Mappings:
Namespace Name Mixin selector official fLctu;f:Iintermediary field_31372Lnet/minecraft/class_2643;field_31372:Inamed field_31372Lnet/minecraft/block/entity/EndGatewayBlockEntity;field_31372:I
-
age
private long age- Mappings:
Namespace Name Mixin selector official gLctu;g:Jintermediary field_12131Lnet/minecraft/class_2643;field_12131:Jnamed ageLnet/minecraft/block/entity/EndGatewayBlockEntity;age:J
-
teleportCooldown
private int teleportCooldown- Mappings:
Namespace Name Mixin selector official hLctu;h:Iintermediary field_12130Lnet/minecraft/class_2643;field_12130:Inamed teleportCooldownLnet/minecraft/block/entity/EndGatewayBlockEntity;teleportCooldown:I
-
exitPortalPos
- Mappings:
Namespace Name Mixin selector official iLctu;i:Lgt;intermediary field_12132Lnet/minecraft/class_2643;field_12132:Lnet/minecraft/class_2338;named exitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;exitPortalPos:Lnet/minecraft/util/math/BlockPos;
-
exactTeleport
private boolean exactTeleport- Mappings:
Namespace Name Mixin selector official jLctu;j:Zintermediary field_12129Lnet/minecraft/class_2643;field_12129:Znamed exactTeleportLnet/minecraft/block/entity/EndGatewayBlockEntity;exactTeleport:Z
-
-
Constructor Details
-
EndGatewayBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lctv;<init>(Lgt;Lcut;)Vintermediary <init>Lnet/minecraft/class_2640;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/EndPortalBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcsn;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcsn;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official aLctu;a(Lcgc;Lgt;Lcut;Lctu;)Vintermediary method_31700Lnet/minecraft/class_2643;method_31700(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vnamed clientTickLnet/minecraft/block/entity/EndGatewayBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official bLctu;b(Lcgc;Lgt;Lcut;Lctu;)Vintermediary method_31702Lnet/minecraft/class_2643;method_31702(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vnamed serverTickLnet/minecraft/block/entity/EndGatewayBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V
-
canTeleport
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lbas;)Zintermediary method_30276Lnet/minecraft/class_2643;method_30276(Lnet/minecraft/class_1297;)Znamed canTeleportLnet/minecraft/block/entity/EndGatewayBlockEntity;canTeleport(Lnet/minecraft/entity/Entity;)Z
-
isRecentlyGenerated
public boolean isRecentlyGenerated()- Mappings:
Namespace Name Mixin selector official cLctu;c()Zintermediary method_11420Lnet/minecraft/class_2643;method_11420()Znamed isRecentlyGeneratedLnet/minecraft/block/entity/EndGatewayBlockEntity;isRecentlyGenerated()Z
-
needsCooldownBeforeTeleporting
public boolean needsCooldownBeforeTeleporting()- Mappings:
Namespace Name Mixin selector official dLctu;d()Zintermediary method_11421Lnet/minecraft/class_2643;method_11421()Znamed needsCooldownBeforeTeleportingLnet/minecraft/block/entity/EndGatewayBlockEntity;needsCooldownBeforeTeleporting()Z
-
getRecentlyGeneratedBeamHeight
public float getRecentlyGeneratedBeamHeight(float tickDelta) - Mappings:
Namespace Name Mixin selector official aLctu;a(F)Fintermediary method_11417Lnet/minecraft/class_2643;method_11417(F)Fnamed getRecentlyGeneratedBeamHeightLnet/minecraft/block/entity/EndGatewayBlockEntity;getRecentlyGeneratedBeamHeight(F)F
-
getCooldownBeamHeight
public float getCooldownBeamHeight(float tickDelta) - Mappings:
Namespace Name Mixin selector official bLctu;b(F)Fintermediary method_11412Lnet/minecraft/class_2643;method_11412(F)Fnamed getCooldownBeamHeightLnet/minecraft/block/entity/EndGatewayBlockEntity;getCooldownBeamHeight(F)F
-
toUpdatePacket
Description copied from class:BlockEntityImplement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update 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 to
BlockEntity.readNbt(net.minecraft.nbt.NbtCompound)on the client.- Overrides:
toUpdatePacketin classBlockEntity- Mappings:
Namespace Name Mixin selector official fLctu;f()Lsz;intermediary method_38253Lnet/minecraft/class_2643;method_38253()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/EndGatewayBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implementsBlockEntity.toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket.- Overrides:
toInitialChunkDataNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aa_Lcsn;aa_()Lpj;intermediary method_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
startTeleportCooldown
private static void startTeleportCooldown(World world, BlockPos pos, BlockState state, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official cLctu;c(Lcgc;Lgt;Lcut;Lctu;)Vintermediary method_11411Lnet/minecraft/class_2643;method_11411(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)Vnamed startTeleportCooldownLnet/minecraft/block/entity/EndGatewayBlockEntity;startTeleportCooldown(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EndGatewayBlockEntity;)V
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data) - Overrides:
onSyncedBlockEventin classBlockEntity- Mappings:
Namespace Name Mixin selector official a_Lcsn;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
tryTeleportingEntity
public static void tryTeleportingEntity(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official aLctu;a(Lcgc;Lgt;Lcut;Lbas;Lctu;)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;)Vnamed 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;)V
-
findBestPortalExitPos
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lcgc;Lgt;)Lgt;intermediary method_11419Lnet/minecraft/class_2643;method_11419(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;named findBestPortalExitPosLnet/minecraft/block/entity/EndGatewayBlockEntity;findBestPortalExitPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-
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 official aLctu;a(Lafo;Lgt;)Lgt;intermediary method_31699Lnet/minecraft/class_2643;method_31699(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;named setupExitPortalLocationLnet/minecraft/block/entity/EndGatewayBlockEntity;setupExitPortalLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-
findTeleportLocation
- Mappings:
Namespace Name Mixin selector official bLctu;b(Lafo;Lgt;)Ldvv;intermediary method_31701Lnet/minecraft/class_2643;method_31701(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;named findTeleportLocationLnet/minecraft/block/entity/EndGatewayBlockEntity;findTeleportLocation(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;
-
isChunkEmpty
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lafo;Ldvv;)Zintermediary method_31698Lnet/minecraft/class_2643;method_31698(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Znamed isChunkEmptyLnet/minecraft/block/entity/EndGatewayBlockEntity;isChunkEmpty(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z
-
findExitPortalPos
private static BlockPos findExitPortalPos(BlockView world, BlockPos pos, int searchRadius, boolean force) - Mappings:
Namespace Name Mixin selector official aLctu;a(Lcfi;Lgt;IZ)Lgt;intermediary method_11410Lnet/minecraft/class_2643;method_11410(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;named findExitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;findExitPortalPos(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;IZ)Lnet/minecraft/util/math/BlockPos;
-
getChunk
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lcgc;Ldvv;)Lcwy;intermediary method_11414Lnet/minecraft/class_2643;method_11414(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;)Lnet/minecraft/class_2818;named getChunkLnet/minecraft/block/entity/EndGatewayBlockEntity;getChunk(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/world/chunk/WorldChunk;
-
findPortalPosition
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lcwy;)Lgt;intermediary method_11413Lnet/minecraft/class_2643;method_11413(Lnet/minecraft/class_2818;)Lnet/minecraft/class_2338;named findPortalPositionLnet/minecraft/block/entity/EndGatewayBlockEntity;findPortalPosition(Lnet/minecraft/world/chunk/WorldChunk;)Lnet/minecraft/util/math/BlockPos;
-
createPortal
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lafo;Lgt;Ldfb;)Vintermediary method_11416Lnet/minecraft/class_2643;method_11416(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_3018;)Vnamed createPortalLnet/minecraft/block/entity/EndGatewayBlockEntity;createPortal(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/EndGatewayFeatureConfig;)V
-
shouldDrawSide
- Overrides:
shouldDrawSidein classEndPortalBlockEntity- Mappings:
Namespace Name Mixin selector official aLctv;a(Lgy;)Zintermediary method_11400Lnet/minecraft/class_2640;method_11400(Lnet/minecraft/class_2350;)Znamed shouldDrawSideLnet/minecraft/block/entity/EndPortalBlockEntity;shouldDrawSide(Lnet/minecraft/util/math/Direction;)Z
-
getDrawnSidesCount
public int getDrawnSidesCount()- Mappings:
Namespace Name Mixin selector official gLctu;g()Iintermediary method_11415Lnet/minecraft/class_2643;method_11415()Inamed getDrawnSidesCountLnet/minecraft/block/entity/EndGatewayBlockEntity;getDrawnSidesCount()I
-
setExitPortalPos
- Mappings:
Namespace Name Mixin selector official aLctu;a(Lgt;Z)Vintermediary method_11418Lnet/minecraft/class_2643;method_11418(Lnet/minecraft/class_2338;Z)Vnamed setExitPortalPosLnet/minecraft/block/entity/EndGatewayBlockEntity;setExitPortalPos(Lnet/minecraft/util/math/BlockPos;Z)V
-