Class class_10323
- Mappings:
Namespace Name named net/minecraft/class_10323intermediary net/minecraft/class_10323official dve
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate @Nullable class_10281private intprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidmethod_64800(ServerWorld serverWorld, int int2, boolean bool) private static @Nullable class_10281method_64801(ServerWorld serverWorld, class_10323 class_10323) voidmethod_64802(@Nullable DamageSource damageSource) booleanmethod_64803(class_10275 class_10275) static voidmethod_64804(World world, BlockPos blockPos, BlockState blockState, class_10323 class_10323) voidtoInitialChunkDataNbt(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.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, readNbt, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, supports, tryParseCustomName, writeIdToNbt, writeNbt
-
Field Details
-
field_54776
private static final int field_54776- See Also:
- Mappings:
Namespace Name Mixin selector named field_54776Lnet/minecraft/class_10323;field_54776:Iintermediary field_54776Lnet/minecraft/class_10323;field_54776:Iofficial bLdve;b:I
-
field_54775
public static final int field_54775- See Also:
- Mappings:
Namespace Name Mixin selector named field_54775Lnet/minecraft/class_10323;field_54775:Iintermediary field_54775Lnet/minecraft/class_10323;field_54775:Iofficial aLdve;a:I
-
field_54777
private static final int field_54777- See Also:
- Mappings:
Namespace Name Mixin selector named field_54777Lnet/minecraft/class_10323;field_54777:Iintermediary field_54777Lnet/minecraft/class_10323;field_54777:Iofficial cLdve;c:I
-
field_54778
private static final int field_54778- See Also:
- Mappings:
Namespace Name Mixin selector named field_54778Lnet/minecraft/class_10323;field_54778:Iintermediary field_54778Lnet/minecraft/class_10323;field_54778:Iofficial dLdve;d:I
-
field_54779
private static final int field_54779- See Also:
- Mappings:
Namespace Name Mixin selector named field_54779Lnet/minecraft/class_10323;field_54779:Iintermediary field_54779Lnet/minecraft/class_10323;field_54779:Iofficial eLdve;e:I
-
field_54780
private static final int field_54780- See Also:
- Mappings:
Namespace Name Mixin selector named field_54780Lnet/minecraft/class_10323;field_54780:Iintermediary field_54780Lnet/minecraft/class_10323;field_54780:Iofficial fLdve;f:I
-
field_54781
private static final int field_54781- See Also:
- Mappings:
Namespace Name Mixin selector named field_54781Lnet/minecraft/class_10323;field_54781:Iintermediary field_54781Lnet/minecraft/class_10323;field_54781:Iofficial gLdve;g:I
-
field_54782
private static final int field_54782- See Also:
- Mappings:
Namespace Name Mixin selector named field_54782Lnet/minecraft/class_10323;field_54782:Iintermediary field_54782Lnet/minecraft/class_10323;field_54782:Iofficial hLdve;h:I
-
field_54783
private static final int field_54783- See Also:
- Mappings:
Namespace Name Mixin selector named field_54783Lnet/minecraft/class_10323;field_54783:Iintermediary field_54783Lnet/minecraft/class_10323;field_54783:Iofficial iLdve;i:I
-
field_54784
private static final int field_54784- See Also:
- Mappings:
Namespace Name Mixin selector named field_54784Lnet/minecraft/class_10323;field_54784:Iintermediary field_54784Lnet/minecraft/class_10323;field_54784:Iofficial jLdve;j:I
-
field_54785
private static final int field_54785- See Also:
- Mappings:
Namespace Name Mixin selector named field_54785Lnet/minecraft/class_10323;field_54785:Iintermediary field_54785Lnet/minecraft/class_10323;field_54785:Iofficial kLdve;k:I
-
field_54786
- Mappings:
Namespace Name Mixin selector named field_54786Lnet/minecraft/class_10323;field_54786:Lnet/minecraft/class_10281;intermediary field_54786Lnet/minecraft/class_10323;field_54786:Lnet/minecraft/class_10281;official lLdve;l:Lcny;
-
field_54787
private int field_54787- Mappings:
Namespace Name Mixin selector named field_54787Lnet/minecraft/class_10323;field_54787:Iintermediary field_54787Lnet/minecraft/class_10323;field_54787:Iofficial mLdve;m:I
-
field_54788
private int field_54788- Mappings:
Namespace Name Mixin selector named field_54788Lnet/minecraft/class_10323;field_54788:Iintermediary field_54788Lnet/minecraft/class_10323;field_54788:Iofficial nLdve;n:I
-
field_54789
- Mappings:
Namespace Name Mixin selector named field_54789Lnet/minecraft/class_10323;field_54789:Lnet/minecraft/util/math/Vec3d;intermediary field_54789Lnet/minecraft/class_10323;field_54789:Lnet/minecraft/class_243;official rLdve;r:Lfbs;
-
-
Constructor Details
-
class_10323
-
-
Method Details
-
method_64804
public static void method_64804(World world, BlockPos blockPos, BlockState blockState, class_10323 class_10323) - Mappings:
Namespace Name Mixin selector named method_64804Lnet/minecraft/class_10323;method_64804(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_10323;)Vintermediary method_64804Lnet/minecraft/class_10323;method_64804(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_10323;)Vofficial aLdve;a(Ldha;Ljh;Ldxn;Ldve;)V
-
method_64801
@Nullable private static @Nullable class_10281 method_64801(ServerWorld serverWorld, class_10323 class_10323) - Mappings:
Namespace Name Mixin selector named method_64801Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10281;intermediary method_64801Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/class_3218;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10281;official aLdve;a(Lash;Ldve;)Lcny;
-
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_10323;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_64805Lnet/minecraft/class_10323;method_64805()Lnet/minecraft/class_2622;official bLdve;b()Lacy;
-
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 aLdup;a(Ljs$a;)Lux;
-
method_64806
public void method_64806()- Mappings:
Namespace Name Mixin selector named method_64806Lnet/minecraft/class_10323;method_64806()Vintermediary method_64806Lnet/minecraft/class_10323;method_64806()Vofficial cLdve;c()V
-
method_64800
- Mappings:
Namespace Name Mixin selector named method_64800Lnet/minecraft/class_10323;method_64800(Lnet/minecraft/server/world/ServerWorld;IZ)Vintermediary method_64800Lnet/minecraft/class_10323;method_64800(Lnet/minecraft/class_3218;IZ)Vofficial aLdve;a(Lash;IZ)V
-
method_64802
- Mappings:
Namespace Name Mixin selector named method_64802Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_64802Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/class_1282;)Vofficial aLdve;a(Lbtv;)V
-
method_64803
- Mappings:
Namespace Name Mixin selector named method_64803Lnet/minecraft/class_10323;method_64803(Lnet/minecraft/class_10275;)Zintermediary method_64803Lnet/minecraft/class_10323;method_64803(Lnet/minecraft/class_10275;)Zofficial aLdve;a(Lcnw;)Z
-