Package net.minecraft.block.entity
Class CopperGolemStatueBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CopperGolemStatueBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CopperGolemStatueBlockEntityintermediary net/minecraft/class_11595official eda
-
Field Summary
FieldsFields 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 static NbtCompoundgetEntityData(CopperGolemEntity copperGolemEntity) private CopperGolemEntitysetupEntity(BlockState state, CopperGolemEntity entity, World world) Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.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, removeFromCopiedStackData, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, tryParseCustomName, writeComponentlessData, writeData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_61439Lnet/minecraft/class_11595;field_61439:Lorg/slf4j/Logger;official aLeda;a:Lorg/slf4j/Logger;
-
NBT_KEYS_TO_SAVE
- Mappings:
Namespace Name Mixin selector named NBT_KEYS_TO_SAVELnet/minecraft/block/entity/CopperGolemStatueBlockEntity;NBT_KEYS_TO_SAVE:Ljava/util/List;intermediary field_61440Lnet/minecraft/class_11595;field_61440:Ljava/util/List;official bLeda;b:Ljava/util/List;
-
-
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>Leda;<init>(Ljb;Lefq;)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 aLeda;a(Lcow;)V
-
getEntityData
- Mappings:
Namespace Name Mixin selector named getEntityDataLnet/minecraft/block/entity/CopperGolemStatueBlockEntity;getEntityData(Lnet/minecraft/entity/passive/CopperGolemEntity;)Lnet/minecraft/nbt/NbtCompound;intermediary method_72661Lnet/minecraft/class_11595;method_72661(Lnet/minecraft/class_11573;)Lnet/minecraft/class_2487;official bLeda;b(Lcow;)Lum;
-
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 aLeda;a(Lefq;)Lcow;
-
setupEntity
- Mappings:
Namespace Name Mixin selector named setupEntityLnet/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_72659Lnet/minecraft/class_11595;method_72659(Lnet/minecraft/class_2680;Lnet/minecraft/class_11573;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11573;official aLeda;a(Lefq;Lcow;Ldnu;)Lcow;
-
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 aLeda;a()Ladd;
-