Package net.minecraft

Class class_11073


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

    • field_58964

      private static final Logger field_58964
      Mappings:
      Namespace Name Mixin selector
      named field_58964 Lnet/minecraft/class_11073;field_58964:Lorg/slf4j/Logger;
      intermediary field_58964 Lnet/minecraft/class_11073;field_58964:Lorg/slf4j/Logger;
      official a Lecw;a:Lorg/slf4j/Logger;
    • field_58965

      private static final int field_58965
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58965 Lnet/minecraft/class_11073;field_58965:I
      intermediary field_58965 Lnet/minecraft/class_11073;field_58965:I
      official b Lecw;b:I
    • field_58966

      private long field_58966
      Mappings:
      Namespace Name Mixin selector
      named field_58966 Lnet/minecraft/class_11073;field_58966:J
      intermediary field_58966 Lnet/minecraft/class_11073;field_58966:J
      official c Lecw;c:J
    • field_58967

      private RegistryKey<DimensionOptions> field_58967
      Mappings:
      Namespace Name Mixin selector
      named field_58967 Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/registry/RegistryKey;
      intermediary field_58967 Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/class_5321;
      official d Lecw;d:Lama;
    • field_58968

      private boolean field_58968
      Mappings:
      Namespace Name Mixin selector
      named field_58968 Lnet/minecraft/class_11073;field_58968:Z
      intermediary field_58968 Lnet/minecraft/class_11073;field_58968:Z
      official e Lecw;e:Z
  • Constructor Details

  • Method Details

    • method_69742

      public long method_69742()
      Mappings:
      Namespace Name Mixin selector
      named method_69742 Lnet/minecraft/class_11073;method_69742()J
      intermediary method_69742 Lnet/minecraft/class_11073;method_69742()J
      official a Lecw;a()J
    • 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 Lebn;b(Luc;Ljj$a;)V
    • 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 Lebn;a(Luc;Ljj$a;)V
    • method_69744

      public void method_69744(RegistryKey<DimensionOptions> registryKey)
      Mappings:
      Namespace Name Mixin selector
      named method_69744 Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_69744 Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/class_5321;)V
      official a Lecw;a(Lama;)V
    • method_69747

      public void method_69747(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_69747 Lnet/minecraft/class_11073;method_69747(Z)V
      intermediary method_69747 Lnet/minecraft/class_11073;method_69747(Z)V
      official a Lecw;a(Z)V
    • method_69745

      public static void method_69745(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073)
      Mappings:
      Namespace Name Mixin selector
      named method_69745 Lnet/minecraft/class_11073;method_69745(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_11073;)V
      intermediary method_69745 Lnet/minecraft/class_11073;method_69745(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)V
      official a Lecw;a(Ldmy;Lix;Lees;Lecw;)V
    • method_69749

      public static void method_69749(World world, BlockPos blockPos, BlockState blockState, class_11073 class_11073)
      Mappings:
      Namespace Name Mixin selector
      named method_69749 Lnet/minecraft/class_11073;method_69749(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_11073;)V
      intermediary method_69749 Lnet/minecraft/class_11073;method_69749(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)V
      official b Lecw;b(Ldmy;Lix;Lees;Lecw;)V
    • method_69750

      public boolean method_69750()
      Mappings:
      Namespace Name Mixin selector
      named method_69750 Lnet/minecraft/class_11073;method_69750()Z
      intermediary method_69750 Lnet/minecraft/class_11073;method_69750()Z
      official c Lecw;c()Z
    • method_69751

      public boolean method_69751()
      Mappings:
      Namespace Name Mixin selector
      named method_69751 Lnet/minecraft/class_11073;method_69751()Z
      intermediary method_69751 Lnet/minecraft/class_11073;method_69751()Z
      official d Lecw;d()Z
    • method_69743

      public float method_69743(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_69743 Lnet/minecraft/class_11073;method_69743(F)F
      intermediary method_69743 Lnet/minecraft/class_11073;method_69743(F)F
      official a Lecw;a(F)F
    • method_69748

      public float method_69748(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_69748 Lnet/minecraft/class_11073;method_69748(F)F
      intermediary method_69748 Lnet/minecraft/class_11073;method_69748(F)F
      official b Lecw;b(F)F
    • 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_11073;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_69752 Lnet/minecraft/class_11073;method_69752()Lnet/minecraft/class_2622;
      official f Lecw;f()Lacn;
    • 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 Lebn;a(Ljj$a;)Luc;
    • method_69746

      public boolean method_69746(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named method_69746 Lnet/minecraft/class_11073;method_69746(Lnet/minecraft/util/math/Direction;)Z
      intermediary method_69746 Lnet/minecraft/class_11073;method_69746(Lnet/minecraft/class_2350;)Z
      official a Lecw;a(Ljd;)Z
    • method_69753

      public int method_69753()
      Mappings:
      Namespace Name Mixin selector
      named method_69753 Lnet/minecraft/class_11073;method_69753()I
      intermediary method_69753 Lnet/minecraft/class_11073;method_69753()I
      official h Lecw;h()I
    • method_69754

      public RegistryKey<World> method_69754()
      Mappings:
      Namespace Name Mixin selector
      named method_69754 Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/registry/RegistryKey;
      intermediary method_69754 Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/class_5321;
      official k Lecw;k()Lama;
    • method_69755

      public boolean method_69755()
      Mappings:
      Namespace Name Mixin selector
      named method_69755 Lnet/minecraft/class_11073;method_69755()Z
      intermediary method_69755 Lnet/minecraft/class_11073;method_69755()Z
      official l Lecw;l()Z