Class CopperGolemStatueBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CopperGolemStatueBlockEntity
All Implemented Interfaces:
DebugTrackable

public class CopperGolemStatueBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/CopperGolemStatueBlockEntity
intermediary net/minecraft/class_11595
official egv
  • 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> Legv;<init>(Lja;Lejm;)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 Legv;a(Lcsp;)V
    • 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 Legv;a(Lejm;)Lcsp;
    • setupEntity

      private CopperGolemEntity setupEntity(BlockState state, CopperGolemEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named setupEntity Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;setupEntity(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/passive/CopperGolemEntity;)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_11573;
      official a Legv;a(Lejm;Lcsp;)Lcsp;
    • 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 Legv;a()Lacx;
    • withComponents

      public ItemStack withComponents(ItemStack stack, CopperGolemStatueBlock.Pose pose)
      Mappings:
      Namespace Name Mixin selector
      named withComponents Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;withComponents(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/CopperGolemStatueBlock$Pose;)Lnet/minecraft/item/ItemStack;
      intermediary method_74146 Lnet/minecraft/class_11595;method_74146(Lnet/minecraft/class_1799;Lnet/minecraft/class_11583$class_11584;)Lnet/minecraft/class_1799;
      official a Legv;a(Ldhp;Ldwm$a;)Ldhp;