Package net.minecraft

Class class_10638

All Implemented Interfaces:
class_10633, class_10634

public class class_10638 extends BlockEntity implements class_10633, class_10634
Mappings:
Namespace Name
named net/minecraft/class_10638
intermediary net/minecraft/class_10638
official dxg
  • Field Details

    • field_56003

      private static final Text field_56003
      Mappings:
      Namespace Name Mixin selector
      named field_56003 Lnet/minecraft/class_10638;field_56003:Lnet/minecraft/text/Text;
      intermediary field_56003 Lnet/minecraft/class_10638;field_56003:Lnet/minecraft/class_2561;
      official a Ldxg;a:Lwv;
    • field_56004

      private static final List<class_10633.BeamSegment> field_56004
      Mappings:
      Namespace Name Mixin selector
      named field_56004 Lnet/minecraft/class_10638;field_56004:Ljava/util/List;
      intermediary field_56004 Lnet/minecraft/class_10638;field_56004:Ljava/util/List;
      official b Ldxg;b:Ljava/util/List;
    • field_56005

      private static final List<class_10633.BeamSegment> field_56005
      Mappings:
      Namespace Name Mixin selector
      named field_56005 Lnet/minecraft/class_10638;field_56005:Ljava/util/List;
      intermediary field_56005 Lnet/minecraft/class_10638;field_56005:Ljava/util/List;
      official c Ldxg;c:Ljava/util/List;
    • field_56006

      private static final List<class_10633.BeamSegment> field_56006
      Mappings:
      Namespace Name Mixin selector
      named field_56006 Lnet/minecraft/class_10638;field_56006:Ljava/util/List;
      intermediary field_56006 Lnet/minecraft/class_10638;field_56006:Ljava/util/List;
      official d Ldxg;d:Ljava/util/List;
    • field_56007

      private static final List<class_10633.BeamSegment> field_56007
      Mappings:
      Namespace Name Mixin selector
      named field_56007 Lnet/minecraft/class_10638;field_56007:Ljava/util/List;
      intermediary field_56007 Lnet/minecraft/class_10638;field_56007:Ljava/util/List;
      official e Ldxg;e:Ljava/util/List;
    • field_56008

      private static final List<class_10633.BeamSegment> field_56008
      Mappings:
      Namespace Name Mixin selector
      named field_56008 Lnet/minecraft/class_10638;field_56008:Ljava/util/List;
      intermediary field_56008 Lnet/minecraft/class_10638;field_56008:Ljava/util/List;
      official f Ldxg;f:Ljava/util/List;
    • field_56009

      private static final Vec3i field_56009
      Mappings:
      Namespace Name Mixin selector
      named field_56009 Lnet/minecraft/class_10638;field_56009:Lnet/minecraft/util/math/Vec3i;
      intermediary field_56009 Lnet/minecraft/class_10638;field_56009:Lnet/minecraft/class_2382;
      official g Ldxg;g:Lkn;
    • field_56010

      private class_10638.class_10639 field_56010
      Mappings:
      Namespace Name Mixin selector
      named field_56010 Lnet/minecraft/class_10638;field_56010:Lnet/minecraft/class_10638$class_10639;
      intermediary field_56010 Lnet/minecraft/class_10638;field_56010:Lnet/minecraft/class_10638$class_10639;
      official h Ldxg;h:Ldxg$a;
  • Constructor Details

  • Method Details

    • method_66745

      public void method_66745(class_10638.class_10639 class_10639)
      Mappings:
      Namespace Name Mixin selector
      named method_66745 Lnet/minecraft/class_10638;method_66745(Lnet/minecraft/class_10638$class_10639;)V
      intermediary method_66745 Lnet/minecraft/class_10638;method_66745(Lnet/minecraft/class_10638$class_10639;)V
      official a Ldxg;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_66740 Lnet/minecraft/class_10638;method_66740(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_66740 Lnet/minecraft/class_10638;method_66740(Lnet/minecraft/class_3218;Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official a Ldxg;a(Larn;Lalc;)Ljava/util/Optional;
    • method_66759

      public BlockBox method_66759()
      Mappings:
      Namespace Name Mixin selector
      named method_66759 Lnet/minecraft/class_10638;method_66759()Lnet/minecraft/util/math/BlockBox;
      intermediary method_66759 Lnet/minecraft/class_10638;method_66759()Lnet/minecraft/class_3341;
      official d Ldxg;d()Leoy;
    • method_66762

      public Box method_66762()
      Mappings:
      Namespace Name Mixin selector
      named method_66762 Lnet/minecraft/class_10638;method_66762()Lnet/minecraft/util/math/Box;
      intermediary method_66762 Lnet/minecraft/class_10638;method_66762()Lnet/minecraft/class_238;
      official f Ldxg;f()Lfcp;
    • method_66752

      private static Optional<StructureTemplate> method_66752(ServerWorld serverWorld, RegistryKey<class_10660> registryKey)
      Mappings:
      Namespace Name Mixin selector
      named method_66752 Lnet/minecraft/class_10638;method_66752(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_66752 Lnet/minecraft/class_10638;method_66752(Lnet/minecraft/class_3218;Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official b Ldxg;b(Larn;Lalc;)Ljava/util/Optional;
    • method_66763

      public Optional<RegistryKey<class_10660>> method_66763()
      Mappings:
      Namespace Name Mixin selector
      named method_66763 Lnet/minecraft/class_10638;method_66763()Ljava/util/Optional;
      intermediary method_66763 Lnet/minecraft/class_10638;method_66763()Ljava/util/Optional;
      official j Ldxg;j()Ljava/util/Optional;
    • method_66764

      public Text method_66764()
      Mappings:
      Namespace Name Mixin selector
      named method_66764 Lnet/minecraft/class_10638;method_66764()Lnet/minecraft/text/Text;
      intermediary method_66764 Lnet/minecraft/class_10638;method_66764()Lnet/minecraft/class_2561;
      official k Ldxg;k()Lwv;
    • method_66735

      private Optional<RegistryEntry.Reference<class_10660>> method_66735()
      Mappings:
      Namespace Name Mixin selector
      named method_66735 Lnet/minecraft/class_10638;method_66735()Ljava/util/Optional;
      intermediary method_66735 Lnet/minecraft/class_10638;method_66735()Ljava/util/Optional;
      official E Ldxg;E()Ljava/util/Optional;
    • method_66765

      public boolean method_66765()
      Mappings:
      Namespace Name Mixin selector
      named method_66765 Lnet/minecraft/class_10638;method_66765()Z
      intermediary method_66765 Lnet/minecraft/class_10638;method_66765()Z
      official s Ldxg;s()Z
    • method_66766

      public Vec3i method_66766()
      Mappings:
      Namespace Name Mixin selector
      named method_66766 Lnet/minecraft/class_10638;method_66766()Lnet/minecraft/util/math/Vec3i;
      intermediary method_66766 Lnet/minecraft/class_10638;method_66766()Lnet/minecraft/class_2382;
      official t Ldxg;t()Lkn;
    • method_66767

      public BlockRotation method_66767()
      Mappings:
      Namespace Name Mixin selector
      named method_66767 Lnet/minecraft/class_10638;method_66767()Lnet/minecraft/util/BlockRotation;
      intermediary method_66767 Lnet/minecraft/class_10638;method_66767()Lnet/minecraft/class_2470;
      official u Ldxg;u()Ldrm;
    • method_66768

      public Optional<Text> method_66768()
      Mappings:
      Namespace Name Mixin selector
      named method_66768 Lnet/minecraft/class_10638;method_66768()Ljava/util/Optional;
      intermediary method_66768 Lnet/minecraft/class_10638;method_66768()Ljava/util/Optional;
      official v Ldxg;v()Ljava/util/Optional;
    • method_66751

      public void method_66751(Text text)
      Mappings:
      Namespace Name Mixin selector
      named method_66751 Lnet/minecraft/class_10638;method_66751(Lnet/minecraft/text/Text;)V
      intermediary method_66751 Lnet/minecraft/class_10638;method_66751(Lnet/minecraft/class_2561;)V
      official a Ldxg;a(Lwv;)V
    • method_66769

      public void method_66769()
      Mappings:
      Namespace Name Mixin selector
      named method_66769 Lnet/minecraft/class_10638;method_66769()V
      intermediary method_66769 Lnet/minecraft/class_10638;method_66769()V
      official w Ldxg;w()V
    • method_66770

      public void method_66770()
      Mappings:
      Namespace Name Mixin selector
      named method_66770 Lnet/minecraft/class_10638;method_66770()V
      intermediary method_66770 Lnet/minecraft/class_10638;method_66770()V
      official x Ldxg;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:
      markDirty in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      named markDirty Lnet/minecraft/block/entity/BlockEntity;markDirty()V
      intermediary method_5431 Lnet/minecraft/class_2586;method_5431()V
      official e Ldvl;e()V
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Returns the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet.

      If the data returned by initial chunk data is suitable for updates, the following shortcut can be used to create an update packet: BlockEntityUpdateS2CPacket.create(this). The NBT will be passed to BlockEntity.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:
      toUpdatePacket in class BlockEntity
      Returns:
      the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toUpdatePacket Lnet/minecraft/class_10638;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_66771 Lnet/minecraft/class_10638;method_66771()Lnet/minecraft/class_2622;
      official y Ldxg;y()Labx;
    • toInitialChunkDataNbt

      public NbtCompound toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries)
      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 default BlockEntityUpdateS2CPacket.

      "Observable state" is a state that clients can observe without specific interaction. For example,

      invalid reference
      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 send all NBT data of this block entity saved to disk, return BlockEntity.createNbt(net.minecraft.registry.RegistryWrapper.WrapperLookup).

      Overrides:
      toInitialChunkDataNbt in class BlockEntity
      Returns:
      the serialized state of this block entity that is observable by clients
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_16887 Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Ldvl;a(Lju$a;)Ltw;
    • readNbt

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Reads data from nbt. 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.

      nbt might 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:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Ldvl;a(Ltw;Lju$a;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Writes data to nbt. 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:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Ldvl;b(Ltw;Lju$a;)V
    • method_66713

      public class_10634.class_10635 method_66713()
      Specified by:
      method_66713 in interface class_10634
      Mappings:
      Namespace Name Mixin selector
      named method_66713 Lnet/minecraft/class_10634;method_66713()Lnet/minecraft/class_10634$class_10635;
      intermediary method_66713 Lnet/minecraft/class_10634;method_66713()Lnet/minecraft/class_10634$class_10635;
      official b Ldvo;b()Ldvo$a;
    • method_66772

      public BlockPos method_66772()
      Mappings:
      Namespace Name Mixin selector
      named method_66772 Lnet/minecraft/class_10638;method_66772()Lnet/minecraft/util/math/BlockPos;
      intermediary method_66772 Lnet/minecraft/class_10638;method_66772()Lnet/minecraft/class_2338;
      official z Ldxg;z()Ljj;
    • method_66747

      public static BlockPos method_66747(BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      named method_66747 Lnet/minecraft/class_10638;method_66747(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
      intermediary method_66747 Lnet/minecraft/class_10638;method_66747(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
      official a Ldxg;a(Ljj;)Ljj;
    • method_66714

      public class_10634.class_10636 method_66714()
      Specified by:
      method_66714 in interface class_10634
      Mappings:
      Namespace Name Mixin selector
      named method_66714 Lnet/minecraft/class_10634;method_66714()Lnet/minecraft/class_10634$class_10636;
      intermediary method_66714 Lnet/minecraft/class_10634;method_66714()Lnet/minecraft/class_10634$class_10636;
      official c Ldvo;c()Ldvo$b;
    • getBeamSegments

      public List<class_10633.BeamSegment> getBeamSegments()
      Specified by:
      getBeamSegments in interface class_10633
      Mappings:
      Namespace Name Mixin selector
      named getBeamSegments Lnet/minecraft/class_10633;getBeamSegments()Ljava/util/List;
      intermediary method_10937 Lnet/minecraft/class_10633;method_10937()Ljava/util/List;
      official a Ldvf;a()Ljava/util/List;
    • method_66736

      private Vec3i method_66736()
      Mappings:
      Namespace Name Mixin selector
      named method_66736 Lnet/minecraft/class_10638;method_66736()Lnet/minecraft/util/math/Vec3i;
      intermediary method_66736 Lnet/minecraft/class_10638;method_66736()Lnet/minecraft/class_2382;
      official F Ldxg;F()Lkn;
    • method_66746

      public void method_66746(Consumer<Text> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_66746 Lnet/minecraft/class_10638;method_66746(Ljava/util/function/Consumer;)V
      intermediary method_66746 Lnet/minecraft/class_10638;method_66746(Ljava/util/function/Consumer;)V
      official a Ldxg;a(Ljava/util/function/Consumer;)V
    • method_66753

      public Optional<Identifier> method_66753(Consumer<Text> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_66753 Lnet/minecraft/class_10638;method_66753(Ljava/util/function/Consumer;)Ljava/util/Optional;
      intermediary method_66753 Lnet/minecraft/class_10638;method_66753(Ljava/util/function/Consumer;)Ljava/util/Optional;
      official b Ldxg;b(Ljava/util/function/Consumer;)Ljava/util/Optional;
    • method_66757

      public boolean method_66757(Consumer<Text> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_66757 Lnet/minecraft/class_10638;method_66757(Ljava/util/function/Consumer;)Z
      intermediary method_66757 Lnet/minecraft/class_10638;method_66757(Ljava/util/function/Consumer;)Z
      official c Ldxg;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_66742 Lnet/minecraft/class_10638;method_66742(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)Z
      intermediary method_66742 Lnet/minecraft/class_10638;method_66742(Lnet/minecraft/class_3218;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Z
      official a Ldxg;a(Larn;Lald;Ljava/util/function/Consumer;)Z
    • method_66760

      public void method_66760(Consumer<Text> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_66760 Lnet/minecraft/class_10638;method_66760(Ljava/util/function/Consumer;)V
      intermediary method_66760 Lnet/minecraft/class_10638;method_66760(Ljava/util/function/Consumer;)V
      official d Ldxg;d(Ljava/util/function/Consumer;)V
    • method_66731

      public boolean method_66731()
      Mappings:
      Namespace Name Mixin selector
      named method_66731 Lnet/minecraft/class_10638;method_66731()Z
      intermediary method_66731 Lnet/minecraft/class_10638;method_66731()Z
      official A Ldxg;A()Z
    • method_66744

      private void method_66744(ServerWorld serverWorld, StructureTemplate structureTemplate)
      Mappings:
      Namespace Name Mixin selector
      named method_66744 Lnet/minecraft/class_10638;method_66744(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/structure/StructureTemplate;)V
      intermediary method_66744 Lnet/minecraft/class_10638;method_66744(Lnet/minecraft/class_3218;Lnet/minecraft/class_3499;)V
      official a Ldxg;a(Larn;Leti;)V
    • method_66737

      private void method_66737()
      Mappings:
      Namespace Name Mixin selector
      named method_66737 Lnet/minecraft/class_10638;method_66737()V
      intermediary method_66737 Lnet/minecraft/class_10638;method_66737()V
      official G Ldxg;G()V
    • method_66738

      private void method_66738()
      Mappings:
      Namespace Name Mixin selector
      named method_66738 Lnet/minecraft/class_10638;method_66738()V
      intermediary method_66738 Lnet/minecraft/class_10638;method_66738()V
      official H Ldxg;H()V
    • method_66732

      public BlockPos method_66732()
      Mappings:
      Namespace Name Mixin selector
      named method_66732 Lnet/minecraft/class_10638;method_66732()Lnet/minecraft/util/math/BlockPos;
      intermediary method_66732 Lnet/minecraft/class_10638;method_66732()Lnet/minecraft/class_2338;
      official B Ldxg;B()Ljj;
    • method_66733

      public void method_66733()
      Mappings:
      Namespace Name Mixin selector
      named method_66733 Lnet/minecraft/class_10638;method_66733()V
      intermediary method_66733 Lnet/minecraft/class_10638;method_66733()V
      official C Ldxg;C()V
    • method_66734

      public void method_66734()
      Mappings:
      Namespace Name Mixin selector
      named method_66734 Lnet/minecraft/class_10638;method_66734()V
      intermediary method_66734 Lnet/minecraft/class_10638;method_66734()V
      official D Ldxg;D()V
    • method_66761

      public void method_66761(Consumer<BlockPos> consumer)
      Mappings:
      Namespace Name Mixin selector
      named method_66761 Lnet/minecraft/class_10638;method_66761(Ljava/util/function/Consumer;)V
      intermediary method_66761 Lnet/minecraft/class_10638;method_66761(Ljava/util/function/Consumer;)V
      official e Ldxg;e(Ljava/util/function/Consumer;)V