Class class_10638
- All Implemented Interfaces:
class_10633,class_10634
- Mappings:
Namespace Name named net/minecraft/class_10638intermediary net/minecraft/class_10638official dxg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumNested classes/interfaces inherited from interface net.minecraft.class_10633
class_10633.BeamSegmentNested classes/interfaces inherited from interface net.minecraft.class_10634
class_10634.class_10635, class_10634.class_10636 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final List<class_10633.BeamSegment> private static final List<class_10633.BeamSegment> private static final List<class_10633.BeamSegment> private static final List<class_10633.BeamSegment> private static final List<class_10633.BeamSegment> private static final Vec3iprivate class_10638.class_10639Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks this block entity as dirty and that it needs to be saved.booleanvoidvoidprivate Optional<RegistryEntry.Reference<class_10660>> private Vec3iprivate voidprivate voidmethod_66740(ServerWorld serverWorld, RegistryKey<class_10660> registryKey) static booleanmethod_66742(ServerWorld serverWorld, Identifier identifier, Consumer<Text> consumer) private voidmethod_66744(ServerWorld serverWorld, StructureTemplate structureTemplate) voidmethod_66745(class_10638.class_10639 class_10639) voidmethod_66746(Consumer<Text> consumer) static BlockPosmethod_66747(BlockPos blockPos) voidmethod_66751(Text text) private static Optional<StructureTemplate> method_66752(ServerWorld serverWorld, RegistryKey<class_10660> registryKey) method_66753(Consumer<Text> consumer) booleanmethod_66757(Consumer<Text> consumer) voidmethod_66760(Consumer<Text> consumer) voidmethod_66761(Consumer<BlockPos> consumer) booleanvoidvoidprotected 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, markRemoved, onStateReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_56003
- Mappings:
Namespace Name Mixin selector named field_56003Lnet/minecraft/class_10638;field_56003:Lnet/minecraft/text/Text;intermediary field_56003Lnet/minecraft/class_10638;field_56003:Lnet/minecraft/class_2561;official aLdxg;a:Lwv;
-
field_56004
- Mappings:
Namespace Name Mixin selector named field_56004Lnet/minecraft/class_10638;field_56004:Ljava/util/List;intermediary field_56004Lnet/minecraft/class_10638;field_56004:Ljava/util/List;official bLdxg;b:Ljava/util/List;
-
field_56005
- Mappings:
Namespace Name Mixin selector named field_56005Lnet/minecraft/class_10638;field_56005:Ljava/util/List;intermediary field_56005Lnet/minecraft/class_10638;field_56005:Ljava/util/List;official cLdxg;c:Ljava/util/List;
-
field_56006
- Mappings:
Namespace Name Mixin selector named field_56006Lnet/minecraft/class_10638;field_56006:Ljava/util/List;intermediary field_56006Lnet/minecraft/class_10638;field_56006:Ljava/util/List;official dLdxg;d:Ljava/util/List;
-
field_56007
- Mappings:
Namespace Name Mixin selector named field_56007Lnet/minecraft/class_10638;field_56007:Ljava/util/List;intermediary field_56007Lnet/minecraft/class_10638;field_56007:Ljava/util/List;official eLdxg;e:Ljava/util/List;
-
field_56008
- Mappings:
Namespace Name Mixin selector named field_56008Lnet/minecraft/class_10638;field_56008:Ljava/util/List;intermediary field_56008Lnet/minecraft/class_10638;field_56008:Ljava/util/List;official fLdxg;f:Ljava/util/List;
-
field_56009
- Mappings:
Namespace Name Mixin selector named field_56009Lnet/minecraft/class_10638;field_56009:Lnet/minecraft/util/math/Vec3i;intermediary field_56009Lnet/minecraft/class_10638;field_56009:Lnet/minecraft/class_2382;official gLdxg;g:Lkn;
-
field_56010
- Mappings:
Namespace Name Mixin selector named field_56010Lnet/minecraft/class_10638;field_56010:Lnet/minecraft/class_10638$class_10639;intermediary field_56010Lnet/minecraft/class_10638;field_56010:Lnet/minecraft/class_10638$class_10639;official hLdxg;h:Ldxg$a;
-
-
Constructor Details
-
class_10638
-
-
Method Details
-
method_66745
- Mappings:
Namespace Name Mixin selector named method_66745Lnet/minecraft/class_10638;method_66745(Lnet/minecraft/class_10638$class_10639;)Vintermediary method_66745Lnet/minecraft/class_10638;method_66745(Lnet/minecraft/class_10638$class_10639;)Vofficial aLdxg;a(Ldxg$a;)V
-
method_66740
public static Optional<Vec3i> method_66740(ServerWorld serverWorld, RegistryKey<class_10660> registryKey) - Mappings:
Namespace Name Mixin selector named method_66740Lnet/minecraft/class_10638;method_66740(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_66740Lnet/minecraft/class_10638;method_66740(Lnet/minecraft/class_3218;Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLdxg;a(Larn;Lalc;)Ljava/util/Optional;
-
method_66759
- Mappings:
Namespace Name Mixin selector named method_66759Lnet/minecraft/class_10638;method_66759()Lnet/minecraft/util/math/BlockBox;intermediary method_66759Lnet/minecraft/class_10638;method_66759()Lnet/minecraft/class_3341;official dLdxg;d()Leoy;
-
method_66762
- Mappings:
Namespace Name Mixin selector named method_66762Lnet/minecraft/class_10638;method_66762()Lnet/minecraft/util/math/Box;intermediary method_66762Lnet/minecraft/class_10638;method_66762()Lnet/minecraft/class_238;official fLdxg;f()Lfcp;
-
method_66752
private static Optional<StructureTemplate> method_66752(ServerWorld serverWorld, RegistryKey<class_10660> registryKey) - Mappings:
Namespace Name Mixin selector named method_66752Lnet/minecraft/class_10638;method_66752(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_66752Lnet/minecraft/class_10638;method_66752(Lnet/minecraft/class_3218;Lnet/minecraft/class_5321;)Ljava/util/Optional;official bLdxg;b(Larn;Lalc;)Ljava/util/Optional;
-
method_66763
- Mappings:
Namespace Name Mixin selector named method_66763Lnet/minecraft/class_10638;method_66763()Ljava/util/Optional;intermediary method_66763Lnet/minecraft/class_10638;method_66763()Ljava/util/Optional;official jLdxg;j()Ljava/util/Optional;
-
method_66764
- Mappings:
Namespace Name Mixin selector named method_66764Lnet/minecraft/class_10638;method_66764()Lnet/minecraft/text/Text;intermediary method_66764Lnet/minecraft/class_10638;method_66764()Lnet/minecraft/class_2561;official kLdxg;k()Lwv;
-
method_66735
- Mappings:
Namespace Name Mixin selector named method_66735Lnet/minecraft/class_10638;method_66735()Ljava/util/Optional;intermediary method_66735Lnet/minecraft/class_10638;method_66735()Ljava/util/Optional;official ELdxg;E()Ljava/util/Optional;
-
method_66765
public boolean method_66765()- Mappings:
Namespace Name Mixin selector named method_66765Lnet/minecraft/class_10638;method_66765()Zintermediary method_66765Lnet/minecraft/class_10638;method_66765()Zofficial sLdxg;s()Z
-
method_66766
- Mappings:
Namespace Name Mixin selector named method_66766Lnet/minecraft/class_10638;method_66766()Lnet/minecraft/util/math/Vec3i;intermediary method_66766Lnet/minecraft/class_10638;method_66766()Lnet/minecraft/class_2382;official tLdxg;t()Lkn;
-
method_66767
- Mappings:
Namespace Name Mixin selector named method_66767Lnet/minecraft/class_10638;method_66767()Lnet/minecraft/util/BlockRotation;intermediary method_66767Lnet/minecraft/class_10638;method_66767()Lnet/minecraft/class_2470;official uLdxg;u()Ldrm;
-
method_66768
- Mappings:
Namespace Name Mixin selector named method_66768Lnet/minecraft/class_10638;method_66768()Ljava/util/Optional;intermediary method_66768Lnet/minecraft/class_10638;method_66768()Ljava/util/Optional;official vLdxg;v()Ljava/util/Optional;
-
method_66751
- Mappings:
Namespace Name Mixin selector named method_66751Lnet/minecraft/class_10638;method_66751(Lnet/minecraft/text/Text;)Vintermediary method_66751Lnet/minecraft/class_10638;method_66751(Lnet/minecraft/class_2561;)Vofficial aLdxg;a(Lwv;)V
-
method_66769
public void method_66769()- Mappings:
Namespace Name Mixin selector named method_66769Lnet/minecraft/class_10638;method_66769()Vintermediary method_66769Lnet/minecraft/class_10638;method_66769()Vofficial wLdxg;w()V
-
method_66770
public void method_66770()- Mappings:
Namespace Name Mixin selector named method_66770Lnet/minecraft/class_10638;method_66770()Vintermediary method_66770Lnet/minecraft/class_10638;method_66770()Vofficial xLdxg;x()V
-
markDirty
public void markDirty()Marks this block entity as dirty and that it needs to be saved. This also triggers.invalid reference
comparator update
This must be called when something changed in a way that affects the saved NBT; otherwise, the game might not save the block entity.
- Overrides:
markDirtyin classBlockEntity- Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/block/entity/BlockEntity;markDirty()Vintermediary method_5431Lnet/minecraft/class_2586;method_5431()Vofficial eLdvl;e()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_10638;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_66771Lnet/minecraft/class_10638;method_66771()Lnet/minecraft/class_2622;official yLdxg;y()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;
-
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
-
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
-
method_66713
- Specified by:
method_66713in interfaceclass_10634- Mappings:
Namespace Name Mixin selector named method_66713Lnet/minecraft/class_10634;method_66713()Lnet/minecraft/class_10634$class_10635;intermediary method_66713Lnet/minecraft/class_10634;method_66713()Lnet/minecraft/class_10634$class_10635;official bLdvo;b()Ldvo$a;
-
method_66772
- Mappings:
Namespace Name Mixin selector named method_66772Lnet/minecraft/class_10638;method_66772()Lnet/minecraft/util/math/BlockPos;intermediary method_66772Lnet/minecraft/class_10638;method_66772()Lnet/minecraft/class_2338;official zLdxg;z()Ljj;
-
method_66747
- Mappings:
Namespace Name Mixin selector named method_66747Lnet/minecraft/class_10638;method_66747(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_66747Lnet/minecraft/class_10638;method_66747(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official aLdxg;a(Ljj;)Ljj;
-
method_66714
- Specified by:
method_66714in interfaceclass_10634- Mappings:
Namespace Name Mixin selector named method_66714Lnet/minecraft/class_10634;method_66714()Lnet/minecraft/class_10634$class_10636;intermediary method_66714Lnet/minecraft/class_10634;method_66714()Lnet/minecraft/class_10634$class_10636;official cLdvo;c()Ldvo$b;
-
getBeamSegments
- Specified by:
getBeamSegmentsin interfaceclass_10633- Mappings:
Namespace Name Mixin selector named getBeamSegmentsLnet/minecraft/class_10633;getBeamSegments()Ljava/util/List;intermediary method_10937Lnet/minecraft/class_10633;method_10937()Ljava/util/List;official aLdvf;a()Ljava/util/List;
-
method_66736
- Mappings:
Namespace Name Mixin selector named method_66736Lnet/minecraft/class_10638;method_66736()Lnet/minecraft/util/math/Vec3i;intermediary method_66736Lnet/minecraft/class_10638;method_66736()Lnet/minecraft/class_2382;official FLdxg;F()Lkn;
-
method_66746
- Mappings:
Namespace Name Mixin selector named method_66746Lnet/minecraft/class_10638;method_66746(Ljava/util/function/Consumer;)Vintermediary method_66746Lnet/minecraft/class_10638;method_66746(Ljava/util/function/Consumer;)Vofficial aLdxg;a(Ljava/util/function/Consumer;)V
-
method_66753
- Mappings:
Namespace Name Mixin selector named method_66753Lnet/minecraft/class_10638;method_66753(Ljava/util/function/Consumer;)Ljava/util/Optional;intermediary method_66753Lnet/minecraft/class_10638;method_66753(Ljava/util/function/Consumer;)Ljava/util/Optional;official bLdxg;b(Ljava/util/function/Consumer;)Ljava/util/Optional;
-
method_66757
- Mappings:
Namespace Name Mixin selector named method_66757Lnet/minecraft/class_10638;method_66757(Ljava/util/function/Consumer;)Zintermediary method_66757Lnet/minecraft/class_10638;method_66757(Ljava/util/function/Consumer;)Zofficial cLdxg;c(Ljava/util/function/Consumer;)Z
-
method_66742
public static boolean method_66742(ServerWorld serverWorld, Identifier identifier, Consumer<Text> consumer) - Mappings:
Namespace Name Mixin selector named method_66742Lnet/minecraft/class_10638;method_66742(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)Zintermediary method_66742Lnet/minecraft/class_10638;method_66742(Lnet/minecraft/class_3218;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Zofficial aLdxg;a(Larn;Lald;Ljava/util/function/Consumer;)Z
-
method_66760
- Mappings:
Namespace Name Mixin selector named method_66760Lnet/minecraft/class_10638;method_66760(Ljava/util/function/Consumer;)Vintermediary method_66760Lnet/minecraft/class_10638;method_66760(Ljava/util/function/Consumer;)Vofficial dLdxg;d(Ljava/util/function/Consumer;)V
-
method_66731
public boolean method_66731()- Mappings:
Namespace Name Mixin selector named method_66731Lnet/minecraft/class_10638;method_66731()Zintermediary method_66731Lnet/minecraft/class_10638;method_66731()Zofficial ALdxg;A()Z
-
method_66744
- Mappings:
Namespace Name Mixin selector named method_66744Lnet/minecraft/class_10638;method_66744(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/structure/StructureTemplate;)Vintermediary method_66744Lnet/minecraft/class_10638;method_66744(Lnet/minecraft/class_3218;Lnet/minecraft/class_3499;)Vofficial aLdxg;a(Larn;Leti;)V
-
method_66737
private void method_66737()- Mappings:
Namespace Name Mixin selector named method_66737Lnet/minecraft/class_10638;method_66737()Vintermediary method_66737Lnet/minecraft/class_10638;method_66737()Vofficial GLdxg;G()V
-
method_66738
private void method_66738()- Mappings:
Namespace Name Mixin selector named method_66738Lnet/minecraft/class_10638;method_66738()Vintermediary method_66738Lnet/minecraft/class_10638;method_66738()Vofficial HLdxg;H()V
-
method_66732
- Mappings:
Namespace Name Mixin selector named method_66732Lnet/minecraft/class_10638;method_66732()Lnet/minecraft/util/math/BlockPos;intermediary method_66732Lnet/minecraft/class_10638;method_66732()Lnet/minecraft/class_2338;official BLdxg;B()Ljj;
-
method_66733
public void method_66733()- Mappings:
Namespace Name Mixin selector named method_66733Lnet/minecraft/class_10638;method_66733()Vintermediary method_66733Lnet/minecraft/class_10638;method_66733()Vofficial CLdxg;C()V
-
method_66734
public void method_66734()- Mappings:
Namespace Name Mixin selector named method_66734Lnet/minecraft/class_10638;method_66734()Vintermediary method_66734Lnet/minecraft/class_10638;method_66734()Vofficial DLdxg;D()V
-
method_66761
- Mappings:
Namespace Name Mixin selector named method_66761Lnet/minecraft/class_10638;method_66761(Ljava/util/function/Consumer;)Vintermediary method_66761Lnet/minecraft/class_10638;method_66761(Ljava/util/function/Consumer;)Vofficial eLdxg;e(Ljava/util/function/Consumer;)V
-