Class MineTravellingBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/MineTravellingBlockEntityintermediary net/minecraft/class_11073official ecw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate RegistryKey<DimensionOptions> private static final intprivate static final Loggerprivate booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclientTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity) longgetAge()booleanfloatmethod_69743(float float2) booleanmethod_69746(Direction direction) floatmethod_69748(float float2) booleanbooleanintprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.static voidserverTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity) voidsetDimension(RegistryKey<DimensionOptions> dimension) voidsetRevisit(boolean revisit) 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.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/block/entity/MineTravellingBlockEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_58964Lnet/minecraft/class_11073;field_58964:Lorg/slf4j/Logger;official aLecw;a:Lorg/slf4j/Logger;
-
field_58965
private static final int field_58965- See Also:
- Mappings:
Namespace Name Mixin selector named field_58965Lnet/minecraft/block/entity/MineTravellingBlockEntity;field_58965:Iintermediary field_58965Lnet/minecraft/class_11073;field_58965:Iofficial bLecw;b:I
-
age
private long age- Mappings:
Namespace Name Mixin selector named ageLnet/minecraft/block/entity/MineTravellingBlockEntity;age:Jintermediary field_58966Lnet/minecraft/class_11073;field_58966:Jofficial cLecw;c:J
-
dimension
- Mappings:
Namespace Name Mixin selector named dimensionLnet/minecraft/block/entity/MineTravellingBlockEntity;dimension:Lnet/minecraft/registry/RegistryKey;intermediary field_58967Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/class_5321;official dLecw;d:Lama;
-
revisit
private boolean revisit- Mappings:
Namespace Name Mixin selector named revisitLnet/minecraft/block/entity/MineTravellingBlockEntity;revisit:Zintermediary field_58968Lnet/minecraft/class_11073;field_58968:Zofficial eLecw;e:Z
-
-
Constructor Details
-
MineTravellingBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/MineTravellingBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_11073;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lecw;<init>(Lix;Lees;)V
-
-
Method Details
-
getAge
public long getAge()- Mappings:
Namespace Name Mixin selector named getAgeLnet/minecraft/block/entity/MineTravellingBlockEntity;getAge()Jintermediary method_69742Lnet/minecraft/class_11073;method_69742()Jofficial aLecw;a()J
-
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 bLebn;b(Luc;Ljj$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 aLebn;a(Luc;Ljj$a;)V
-
setDimension
- Mappings:
Namespace Name Mixin selector named setDimensionLnet/minecraft/block/entity/MineTravellingBlockEntity;setDimension(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_69744Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/class_5321;)Vofficial aLecw;a(Lama;)V
-
setRevisit
public void setRevisit(boolean revisit) - Mappings:
Namespace Name Mixin selector named setRevisitLnet/minecraft/block/entity/MineTravellingBlockEntity;setRevisit(Z)Vintermediary method_69747Lnet/minecraft/class_11073;method_69747(Z)Vofficial aLecw;a(Z)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named clientTickLnet/minecraft/block/entity/MineTravellingBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MineTravellingBlockEntity;)Vintermediary method_69745Lnet/minecraft/class_11073;method_69745(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)Vofficial aLecw;a(Ldmy;Lix;Lees;Lecw;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/MineTravellingBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MineTravellingBlockEntity;)Vintermediary method_69749Lnet/minecraft/class_11073;method_69749(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)Vofficial bLecw;b(Ldmy;Lix;Lees;Lecw;)V
-
method_69750
public boolean method_69750()- Mappings:
Namespace Name Mixin selector named method_69750Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69750()Zintermediary method_69750Lnet/minecraft/class_11073;method_69750()Zofficial cLecw;c()Z
-
method_69751
public boolean method_69751()- Mappings:
Namespace Name Mixin selector named method_69751Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69751()Zintermediary method_69751Lnet/minecraft/class_11073;method_69751()Zofficial dLecw;d()Z
-
method_69743
public float method_69743(float float2) - Mappings:
Namespace Name Mixin selector named method_69743Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69743(F)Fintermediary method_69743Lnet/minecraft/class_11073;method_69743(F)Fofficial aLecw;a(F)F
-
method_69748
public float method_69748(float float2) - Mappings:
Namespace Name Mixin selector named method_69748Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69748(F)Fintermediary method_69748Lnet/minecraft/class_11073;method_69748(F)Fofficial bLecw;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/MineTravellingBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_69752Lnet/minecraft/class_11073;method_69752()Lnet/minecraft/class_2622;official fLecw;f()Lacn;
-
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 aLebn;a(Ljj$a;)Luc;
-
method_69746
- Mappings:
Namespace Name Mixin selector named method_69746Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69746(Lnet/minecraft/util/math/Direction;)Zintermediary method_69746Lnet/minecraft/class_11073;method_69746(Lnet/minecraft/class_2350;)Zofficial aLecw;a(Ljd;)Z
-
method_69753
public int method_69753()- Mappings:
Namespace Name Mixin selector named method_69753Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69753()Iintermediary method_69753Lnet/minecraft/class_11073;method_69753()Iofficial hLecw;h()I
-
getWorldKey
- Mappings:
Namespace Name Mixin selector named getWorldKeyLnet/minecraft/block/entity/MineTravellingBlockEntity;getWorldKey()Lnet/minecraft/registry/RegistryKey;intermediary method_69754Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/class_5321;official kLecw;k()Lama;
-
isRevisit
public boolean isRevisit()- Mappings:
Namespace Name Mixin selector named isRevisitLnet/minecraft/block/entity/MineTravellingBlockEntity;isRevisit()Zintermediary method_69755Lnet/minecraft/class_11073;method_69755()Zofficial lLecw;l()Z
-