Class CopperGolemStatueBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CopperGolemStatueBlockEntity

public class CopperGolemStatueBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/CopperGolemStatueBlockEntity
intermediary net/minecraft/class_11595
official eda
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_61439 Lnet/minecraft/class_11595;field_61439:Lorg/slf4j/Logger;
      official a Leda;a:Lorg/slf4j/Logger;
    • NBT_KEYS_TO_SAVE

      private static final List<String> NBT_KEYS_TO_SAVE
      Mappings:
      Namespace Name Mixin selector
      named NBT_KEYS_TO_SAVE Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;NBT_KEYS_TO_SAVE:Ljava/util/List;
      intermediary field_61440 Lnet/minecraft/class_11595;field_61440:Ljava/util/List;
      official b Leda;b:Ljava/util/List;
  • Constructor Details

    • CopperGolemStatueBlockEntity

      public CopperGolemStatueBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_11595;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Leda;<init>(Ljb;Lefq;)V
  • Method Details

    • copyDataFrom

      public void copyDataFrom(CopperGolemEntity copperGolemEntity)
      Mappings:
      Namespace Name Mixin selector
      named copyDataFrom Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;copyDataFrom(Lnet/minecraft/entity/passive/CopperGolemEntity;)V
      intermediary method_72657 Lnet/minecraft/class_11595;method_72657(Lnet/minecraft/class_11573;)V
      official a Leda;a(Lcow;)V
    • getEntityData

      private static NbtCompound getEntityData(CopperGolemEntity copperGolemEntity)
      Mappings:
      Namespace Name Mixin selector
      named getEntityData Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;getEntityData(Lnet/minecraft/entity/passive/CopperGolemEntity;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_72661 Lnet/minecraft/class_11595;method_72661(Lnet/minecraft/class_11573;)Lnet/minecraft/class_2487;
      official b Leda;b(Lcow;)Lum;
    • createCopperGolem

      @Nullable public @Nullable CopperGolemEntity createCopperGolem(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named createCopperGolem Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;createCopperGolem(Lnet/minecraft/block/BlockState;)Lnet/minecraft/entity/passive/CopperGolemEntity;
      intermediary method_72658 Lnet/minecraft/class_11595;method_72658(Lnet/minecraft/class_2680;)Lnet/minecraft/class_11573;
      official a Leda;a(Lefq;)Lcow;
    • setupEntity

      private CopperGolemEntity setupEntity(BlockState state, CopperGolemEntity entity, World world)
      Mappings:
      Namespace Name Mixin selector
      named setupEntity Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;setupEntity(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/passive/CopperGolemEntity;Lnet/minecraft/world/World;)Lnet/minecraft/entity/passive/CopperGolemEntity;
      intermediary method_72659 Lnet/minecraft/class_11595;method_72659(Lnet/minecraft/class_2680;Lnet/minecraft/class_11573;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11573;
      official a Leda;a(Lefq;Lcow;Ldnu;)Lcow;
    • 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

      invalid reference
      #readNbt
      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/block/entity/CopperGolemStatueBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_72656 Lnet/minecraft/class_11595;method_72656()Lnet/minecraft/class_2622;
      official a Leda;a()Ladd;