Package net.minecraft
Class class_11595
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.class_11595
- Mappings:
Namespace Name named net/minecraft/class_11595intermediary net/minecraft/class_11595official ecq
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmethod_72657(class_11573 class_11573) method_72658(BlockState blockState) private class_11573method_72659(BlockState blockState, class_11573 class_11573, World world) private static NbtCompoundmethod_72661(class_11573 class_11573) Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, readComponents, readData, removeFromCopiedStackData, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, tryParseCustomName, writeComponentlessData, writeData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
Field Details
-
field_61439
- Mappings:
Namespace Name Mixin selector named field_61439Lnet/minecraft/class_11595;field_61439:Lorg/slf4j/Logger;intermediary field_61439Lnet/minecraft/class_11595;field_61439:Lorg/slf4j/Logger;official aLecq;a:Lorg/slf4j/Logger;
-
field_61440
- Mappings:
Namespace Name Mixin selector named field_61440Lnet/minecraft/class_11595;field_61440:Ljava/util/List;intermediary field_61440Lnet/minecraft/class_11595;field_61440:Ljava/util/List;official bLecq;b:Ljava/util/List;
-
-
Constructor Details
-
class_11595
-
-
Method Details
-
method_72657
- Mappings:
Namespace Name Mixin selector named method_72657Lnet/minecraft/class_11595;method_72657(Lnet/minecraft/class_11573;)Vintermediary method_72657Lnet/minecraft/class_11595;method_72657(Lnet/minecraft/class_11573;)Vofficial aLecq;a(Lcor;)V
-
method_72661
- Mappings:
Namespace Name Mixin selector named method_72661Lnet/minecraft/class_11595;method_72661(Lnet/minecraft/class_11573;)Lnet/minecraft/nbt/NbtCompound;intermediary method_72661Lnet/minecraft/class_11595;method_72661(Lnet/minecraft/class_11573;)Lnet/minecraft/class_2487;official bLecq;b(Lcor;)Lul;
-
method_72658
- Mappings:
Namespace Name Mixin selector named method_72658Lnet/minecraft/class_11595;method_72658(Lnet/minecraft/block/BlockState;)Lnet/minecraft/class_11573;intermediary method_72658Lnet/minecraft/class_11595;method_72658(Lnet/minecraft/class_2680;)Lnet/minecraft/class_11573;official aLecq;a(Lefg;)Lcor;
-
method_72659
- Mappings:
Namespace Name Mixin selector named method_72659Lnet/minecraft/class_11595;method_72659(Lnet/minecraft/block/BlockState;Lnet/minecraft/class_11573;Lnet/minecraft/world/World;)Lnet/minecraft/class_11573;intermediary method_72659Lnet/minecraft/class_11595;method_72659(Lnet/minecraft/class_2680;Lnet/minecraft/class_11573;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11573;official aLecq;a(Lefg;Lcor;Ldno;)Lcor;
-
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 toon the client.invalid reference
#readNbt"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_11595;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_72656Lnet/minecraft/class_11595;method_72656()Lnet/minecraft/class_2622;official aLecq;a()Lacz;
-