Package net.minecraft.block.entity
Class CopperGolemStatueBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CopperGolemStatueBlockEntity
- All Implemented Interfaces:
DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/CopperGolemStatueBlockEntityintermediary net/minecraft/class_11595official egv
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
Field Summary
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyDataFrom(CopperGolemEntity copperGolemEntity) createCopperGolem(BlockState state) private CopperGolemEntitysetupEntity(BlockState state, CopperGolemEntity entity) Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.withComponents(ItemStack stack, CopperGolemStatueBlock.Pose pose) Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, readComponents, readData, registerTracking, removeFromCopiedStackData, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, tryParseCustomName, writeComponentlessData, writeData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
Constructor Details
-
CopperGolemStatueBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/CopperGolemStatueBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_11595;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Legv;<init>(Lja;Lejm;)V
-
-
Method Details
-
copyDataFrom
- Mappings:
Namespace Name Mixin selector named copyDataFromLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;copyDataFrom(Lnet/minecraft/entity/passive/CopperGolemEntity;)Vintermediary method_72657Lnet/minecraft/class_11595;method_72657(Lnet/minecraft/class_11573;)Vofficial aLegv;a(Lcsp;)V
-
createCopperGolem
- Mappings:
Namespace Name Mixin selector named createCopperGolemLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;createCopperGolem(Lnet/minecraft/block/BlockState;)Lnet/minecraft/entity/passive/CopperGolemEntity;intermediary method_72658Lnet/minecraft/class_11595;method_72658(Lnet/minecraft/class_2680;)Lnet/minecraft/class_11573;official aLegv;a(Lejm;)Lcsp;
-
setupEntity
- Mappings:
Namespace Name Mixin selector named setupEntityLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;setupEntity(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/passive/CopperGolemEntity;)Lnet/minecraft/entity/passive/CopperGolemEntity;intermediary method_72659Lnet/minecraft/class_11595;method_72659(Lnet/minecraft/class_2680;Lnet/minecraft/class_11573;)Lnet/minecraft/class_11573;official aLegv;a(Lejm;Lcsp;)Lcsp;
-
toUpdatePacket
Description copied from class:BlockEntityReturns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this). The NBT will be passed toon the client.invalid reference
#readNbt"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:
toUpdatePacketin classBlockEntity- Returns:
- the packet to send to nearby players when the block entity's observable
state changes, or
nullto not send the packet - See Also:
- Mappings:
Namespace Name Mixin selector named toUpdatePacketLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_72656Lnet/minecraft/class_11595;method_72656()Lnet/minecraft/class_2622;official aLegv;a()Lacx;
-
withComponents
- Mappings:
Namespace Name Mixin selector named withComponentsLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;withComponents(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/CopperGolemStatueBlock$Pose;)Lnet/minecraft/item/ItemStack;intermediary method_74146Lnet/minecraft/class_11595;method_74146(Lnet/minecraft/class_1799;Lnet/minecraft/class_11583$class_11584;)Lnet/minecraft/class_1799;official aLegv;a(Ldhp;Ldwm$a;)Ldhp;
-