Class class_11073
- Mappings:
Namespace Name named net/minecraft/class_11073intermediary net/minecraft/class_11073official ecw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate static final intprivate longprivate RegistryKey<DimensionOptions> private booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongfloatmethod_69743(float float2) voidmethod_69744(RegistryKey<DimensionOptions> registryKey) static voidmethod_69745(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073) booleanmethod_69746(Direction direction) voidmethod_69747(boolean bool) floatmethod_69748(float float2) static voidmethod_69749(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073) booleanbooleanintbooleanprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.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
-
field_58964
- Mappings:
Namespace Name Mixin selector named field_58964Lnet/minecraft/class_11073;field_58964: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/class_11073;field_58965:Iintermediary field_58965Lnet/minecraft/class_11073;field_58965:Iofficial bLecw;b:I
-
field_58966
private long field_58966- Mappings:
Namespace Name Mixin selector named field_58966Lnet/minecraft/class_11073;field_58966:Jintermediary field_58966Lnet/minecraft/class_11073;field_58966:Jofficial cLecw;c:J
-
field_58967
- Mappings:
Namespace Name Mixin selector named field_58967Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/registry/RegistryKey;intermediary field_58967Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/class_5321;official dLecw;d:Lama;
-
field_58968
private boolean field_58968- Mappings:
Namespace Name Mixin selector named field_58968Lnet/minecraft/class_11073;field_58968:Zintermediary field_58968Lnet/minecraft/class_11073;field_58968:Zofficial eLecw;e:Z
-
-
Constructor Details
-
class_11073
-
-
Method Details
-
method_69742
public long method_69742()- Mappings:
Namespace Name Mixin selector named method_69742Lnet/minecraft/class_11073;method_69742()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
-
method_69744
- Mappings:
Namespace Name Mixin selector named method_69744Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_69744Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/class_5321;)Vofficial aLecw;a(Lama;)V
-
method_69747
public void method_69747(boolean bool) - Mappings:
Namespace Name Mixin selector named method_69747Lnet/minecraft/class_11073;method_69747(Z)Vintermediary method_69747Lnet/minecraft/class_11073;method_69747(Z)Vofficial aLecw;a(Z)V
-
method_69745
public static void method_69745(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073) - Mappings:
Namespace Name Mixin selector named method_69745Lnet/minecraft/class_11073;method_69745(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_11073;)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
-
method_69749
public static void method_69749(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073) - Mappings:
Namespace Name Mixin selector named method_69749Lnet/minecraft/class_11073;method_69749(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_11073;)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/class_11073;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/class_11073;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/class_11073;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/class_11073;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/class_11073;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,
'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.invalid reference
CampfireBlockEntityTo 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/class_11073;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/class_11073;method_69753()Iintermediary method_69753Lnet/minecraft/class_11073;method_69753()Iofficial hLecw;h()I
-
method_69754
- Mappings:
Namespace Name Mixin selector named method_69754Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/registry/RegistryKey;intermediary method_69754Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/class_5321;official kLecw;k()Lama;
-
method_69755
public boolean method_69755()- Mappings:
Namespace Name Mixin selector named method_69755Lnet/minecraft/class_11073;method_69755()Zintermediary method_69755Lnet/minecraft/class_11073;method_69755()Zofficial lLecw;l()Z
-