Package net.minecraft

Class class_10637


public class class_10637 extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/class_10637
intermediary net/minecraft/class_10637
official dxf
  • Field Details

    • field_55998

      private static final Logger field_55998
      Mappings:
      Namespace Name Mixin selector
      named field_55998 Lnet/minecraft/class_10637;field_55998:Lorg/slf4j/Logger;
      intermediary field_55998 Lnet/minecraft/class_10637;field_55998:Lorg/slf4j/Logger;
      official a Ldxf;a:Lorg/slf4j/Logger;
    • field_55999

      private class_10641 field_55999
      Mappings:
      Namespace Name Mixin selector
      named field_55999 Lnet/minecraft/class_10637;field_55999:Lnet/minecraft/class_10641;
      intermediary field_55999 Lnet/minecraft/class_10637;field_55999:Lnet/minecraft/class_10641;
      official b Ldxf;b:Ldzx;
    • field_56000

      private String field_56000
      Mappings:
      Namespace Name Mixin selector
      named field_56000 Lnet/minecraft/class_10637;field_56000:Ljava/lang/String;
      intermediary field_56000 Lnet/minecraft/class_10637;field_56000:Ljava/lang/String;
      official c Ldxf;c:Ljava/lang/String;
    • field_56001

      private boolean field_56001
      Mappings:
      Namespace Name Mixin selector
      named field_56001 Lnet/minecraft/class_10637;field_56001:Z
      intermediary field_56001 Lnet/minecraft/class_10637;field_56001:Z
      official d Ldxf;d:Z
    • field_56002

      private boolean field_56002
      Mappings:
      Namespace Name Mixin selector
      named field_56002 Lnet/minecraft/class_10637;field_56002:Z
      intermediary field_56002 Lnet/minecraft/class_10637;field_56002:Z
      official e Ldxf;e:Z
  • Constructor Details

  • Method Details

    • writeNbt

      public 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
    • readNbt

      public 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
    • method_66729

      private void method_66729()
      Mappings:
      Namespace Name Mixin selector
      named method_66729 Lnet/minecraft/class_10637;method_66729()V
      intermediary method_66729 Lnet/minecraft/class_10637;method_66729()V
      official u Ldxf;u()V
    • 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_10637;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_66718 Lnet/minecraft/class_10637;method_66718()Lnet/minecraft/class_2622;
      official a Ldxf;a()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;
    • method_66722

      public boolean method_66722()
      Mappings:
      Namespace Name Mixin selector
      named method_66722 Lnet/minecraft/class_10637;method_66722()Z
      intermediary method_66722 Lnet/minecraft/class_10637;method_66722()Z
      official c Ldxf;c()Z
    • method_66721

      public void method_66721(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_66721 Lnet/minecraft/class_10637;method_66721(Z)V
      intermediary method_66721 Lnet/minecraft/class_10637;method_66721(Z)V
      official a Ldxf;a(Z)V
    • method_66723

      public class_10641 method_66723()
      Mappings:
      Namespace Name Mixin selector
      named method_66723 Lnet/minecraft/class_10637;method_66723()Lnet/minecraft/class_10641;
      intermediary method_66723 Lnet/minecraft/class_10637;method_66723()Lnet/minecraft/class_10641;
      official d Ldxf;d()Ldzx;
    • method_66719

      public void method_66719(class_10641 class_10641)
      Mappings:
      Namespace Name Mixin selector
      named method_66719 Lnet/minecraft/class_10637;method_66719(Lnet/minecraft/class_10641;)V
      intermediary method_66719 Lnet/minecraft/class_10637;method_66719(Lnet/minecraft/class_10641;)V
      official a Ldxf;a(Ldzx;)V
    • method_66730

      private Block method_66730()
      Mappings:
      Namespace Name Mixin selector
      named method_66730 Lnet/minecraft/class_10637;method_66730()Lnet/minecraft/block/Block;
      intermediary method_66730 Lnet/minecraft/class_10637;method_66730()Lnet/minecraft/class_2248;
      official v Ldxf;v()Ldku;
    • method_66724

      public void method_66724()
      Mappings:
      Namespace Name Mixin selector
      named method_66724 Lnet/minecraft/class_10637;method_66724()V
      intermediary method_66724 Lnet/minecraft/class_10637;method_66724()V
      official f Ldxf;f()V
    • method_66725

      public void method_66725()
      Mappings:
      Namespace Name Mixin selector
      named method_66725 Lnet/minecraft/class_10637;method_66725()V
      intermediary method_66725 Lnet/minecraft/class_10637;method_66725()V
      official j Ldxf;j()V
    • method_66726

      public void method_66726()
      Mappings:
      Namespace Name Mixin selector
      named method_66726 Lnet/minecraft/class_10637;method_66726()V
      intermediary method_66726 Lnet/minecraft/class_10637;method_66726()V
      official k Ldxf;k()V
    • method_66727

      public boolean method_66727()
      Mappings:
      Namespace Name Mixin selector
      named method_66727 Lnet/minecraft/class_10637;method_66727()Z
      intermediary method_66727 Lnet/minecraft/class_10637;method_66727()Z
      official s Ldxf;s()Z
    • method_66728

      public String method_66728()
      Mappings:
      Namespace Name Mixin selector
      named method_66728 Lnet/minecraft/class_10637;method_66728()Ljava/lang/String;
      intermediary method_66728 Lnet/minecraft/class_10637;method_66728()Ljava/lang/String;
      official t Ldxf;t()Ljava/lang/String;
    • method_66720

      public void method_66720(String string)
      Mappings:
      Namespace Name Mixin selector
      named method_66720 Lnet/minecraft/class_10637;method_66720(Ljava/lang/String;)V
      intermediary method_66720 Lnet/minecraft/class_10637;method_66720(Ljava/lang/String;)V
      official a Ldxf;a(Ljava/lang/String;)V