Class class_10637
- Mappings:
Namespace Name named net/minecraft/class_10637intermediary net/minecraft/class_10637official dxf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate class_10641private Stringprivate booleanprivate booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmethod_66719(class_10641 class_10641) voidmethod_66720(String string) voidmethod_66721(boolean bool) booleanvoidvoidvoidbooleanprivate voidprivate BlockvoidreadNbt(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.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, onStateReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_55998
- Mappings:
Namespace Name Mixin selector named field_55998Lnet/minecraft/class_10637;field_55998:Lorg/slf4j/Logger;intermediary field_55998Lnet/minecraft/class_10637;field_55998:Lorg/slf4j/Logger;official aLdxf;a:Lorg/slf4j/Logger;
-
field_55999
- Mappings:
Namespace Name Mixin selector named field_55999Lnet/minecraft/class_10637;field_55999:Lnet/minecraft/class_10641;intermediary field_55999Lnet/minecraft/class_10637;field_55999:Lnet/minecraft/class_10641;official bLdxf;b:Ldzx;
-
field_56000
- Mappings:
Namespace Name Mixin selector named field_56000Lnet/minecraft/class_10637;field_56000:Ljava/lang/String;intermediary field_56000Lnet/minecraft/class_10637;field_56000:Ljava/lang/String;official cLdxf;c:Ljava/lang/String;
-
field_56001
private boolean field_56001- Mappings:
Namespace Name Mixin selector named field_56001Lnet/minecraft/class_10637;field_56001:Zintermediary field_56001Lnet/minecraft/class_10637;field_56001:Zofficial dLdxf;d:Z
-
field_56002
private boolean field_56002- Mappings:
Namespace Name Mixin selector named field_56002Lnet/minecraft/class_10637;field_56002:Zintermediary field_56002Lnet/minecraft/class_10637;field_56002:Zofficial eLdxf;e:Z
-
-
Constructor Details
-
class_10637
-
-
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 bLdvl;b(Ltw;Lju$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 aLdvl;a(Ltw;Lju$a;)V
-
method_66729
private void method_66729()- Mappings:
Namespace Name Mixin selector named method_66729Lnet/minecraft/class_10637;method_66729()Vintermediary method_66729Lnet/minecraft/class_10637;method_66729()Vofficial uLdxf;u()V
-
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_10637;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_66718Lnet/minecraft/class_10637;method_66718()Lnet/minecraft/class_2622;official aLdxf;a()Labx;
-
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 aLdvl;a(Lju$a;)Ltw;
-
method_66722
public boolean method_66722()- Mappings:
Namespace Name Mixin selector named method_66722Lnet/minecraft/class_10637;method_66722()Zintermediary method_66722Lnet/minecraft/class_10637;method_66722()Zofficial cLdxf;c()Z
-
method_66721
public void method_66721(boolean bool) - Mappings:
Namespace Name Mixin selector named method_66721Lnet/minecraft/class_10637;method_66721(Z)Vintermediary method_66721Lnet/minecraft/class_10637;method_66721(Z)Vofficial aLdxf;a(Z)V
-
method_66723
- Mappings:
Namespace Name Mixin selector named method_66723Lnet/minecraft/class_10637;method_66723()Lnet/minecraft/class_10641;intermediary method_66723Lnet/minecraft/class_10637;method_66723()Lnet/minecraft/class_10641;official dLdxf;d()Ldzx;
-
method_66719
- Mappings:
Namespace Name Mixin selector named method_66719Lnet/minecraft/class_10637;method_66719(Lnet/minecraft/class_10641;)Vintermediary method_66719Lnet/minecraft/class_10637;method_66719(Lnet/minecraft/class_10641;)Vofficial aLdxf;a(Ldzx;)V
-
method_66730
- Mappings:
Namespace Name Mixin selector named method_66730Lnet/minecraft/class_10637;method_66730()Lnet/minecraft/block/Block;intermediary method_66730Lnet/minecraft/class_10637;method_66730()Lnet/minecraft/class_2248;official vLdxf;v()Ldku;
-
method_66724
public void method_66724()- Mappings:
Namespace Name Mixin selector named method_66724Lnet/minecraft/class_10637;method_66724()Vintermediary method_66724Lnet/minecraft/class_10637;method_66724()Vofficial fLdxf;f()V
-
method_66725
public void method_66725()- Mappings:
Namespace Name Mixin selector named method_66725Lnet/minecraft/class_10637;method_66725()Vintermediary method_66725Lnet/minecraft/class_10637;method_66725()Vofficial jLdxf;j()V
-
method_66726
public void method_66726()- Mappings:
Namespace Name Mixin selector named method_66726Lnet/minecraft/class_10637;method_66726()Vintermediary method_66726Lnet/minecraft/class_10637;method_66726()Vofficial kLdxf;k()V
-
method_66727
public boolean method_66727()- Mappings:
Namespace Name Mixin selector named method_66727Lnet/minecraft/class_10637;method_66727()Zintermediary method_66727Lnet/minecraft/class_10637;method_66727()Zofficial sLdxf;s()Z
-
method_66728
- Mappings:
Namespace Name Mixin selector named method_66728Lnet/minecraft/class_10637;method_66728()Ljava/lang/String;intermediary method_66728Lnet/minecraft/class_10637;method_66728()Ljava/lang/String;official tLdxf;t()Ljava/lang/String;
-
method_66720
- Mappings:
Namespace Name Mixin selector named method_66720Lnet/minecraft/class_10637;method_66720(Ljava/lang/String;)Vintermediary method_66720Lnet/minecraft/class_10637;method_66720(Ljava/lang/String;)Vofficial aLdxf;a(Ljava/lang/String;)V
-