Class CreakingHeartBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CreakingHeartBlockEntityintermediary net/minecraft/class_10323official dvl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable TransientCreakingEntityprivate intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate intprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPuppet(CreakingEntity creaking) intintprivate doublevoidonBreak(@Nullable DamageSource damageSource) voidprivate static @Nullable TransientCreakingEntityspawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity) private voidspawnTrailParticles(ServerWorld world, int count, boolean bool) static voidtick(World world, BlockPos pos, BlockState state, CreakingHeartBlockEntity blockEntity) toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.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, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, readNbt, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, supports, tryParseCustomName, writeIdToNbt, writeNbt
-
Field Details
-
field_54776
private static final int field_54776- See Also:
- Mappings:
Namespace Name Mixin selector named field_54776Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54776:Iintermediary field_54776Lnet/minecraft/class_10323;field_54776:Iofficial bLdvl;b:I
-
field_54775
public static final int field_54775- See Also:
- Mappings:
Namespace Name Mixin selector named field_54775Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54775:Iintermediary field_54775Lnet/minecraft/class_10323;field_54775:Iofficial aLdvl;a:I
-
field_54777
private static final int field_54777- See Also:
- Mappings:
Namespace Name Mixin selector named field_54777Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54777:Iintermediary field_54777Lnet/minecraft/class_10323;field_54777:Iofficial cLdvl;c:I
-
field_54778
private static final int field_54778- See Also:
- Mappings:
Namespace Name Mixin selector named field_54778Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54778:Iintermediary field_54778Lnet/minecraft/class_10323;field_54778:Iofficial dLdvl;d:I
-
field_54779
private static final int field_54779- See Also:
- Mappings:
Namespace Name Mixin selector named field_54779Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54779:Iintermediary field_54779Lnet/minecraft/class_10323;field_54779:Iofficial eLdvl;e:I
-
field_54780
private static final int field_54780- See Also:
- Mappings:
Namespace Name Mixin selector named field_54780Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54780:Iintermediary field_54780Lnet/minecraft/class_10323;field_54780:Iofficial fLdvl;f:I
-
field_54781
private static final int field_54781- See Also:
- Mappings:
Namespace Name Mixin selector named field_54781Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54781:Iintermediary field_54781Lnet/minecraft/class_10323;field_54781:Iofficial gLdvl;g:I
-
field_54782
private static final int field_54782- See Also:
- Mappings:
Namespace Name Mixin selector named field_54782Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54782:Iintermediary field_54782Lnet/minecraft/class_10323;field_54782:Iofficial hLdvl;h:I
-
field_54783
private static final int field_54783- See Also:
- Mappings:
Namespace Name Mixin selector named field_54783Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54783:Iintermediary field_54783Lnet/minecraft/class_10323;field_54783:Iofficial iLdvl;i:I
-
field_54784
private static final int field_54784- See Also:
- Mappings:
Namespace Name Mixin selector named field_54784Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54784:Iintermediary field_54784Lnet/minecraft/class_10323;field_54784:Iofficial jLdvl;j:I
-
field_54785
private static final int field_54785- See Also:
- Mappings:
Namespace Name Mixin selector named field_54785Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54785:Iintermediary field_54785Lnet/minecraft/class_10323;field_54785:Iofficial kLdvl;k:I
-
creakingPuppet
- Mappings:
Namespace Name Mixin selector named creakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingPuppet:Lnet/minecraft/entity/mob/TransientCreakingEntity;intermediary field_54786Lnet/minecraft/class_10323;field_54786:Lnet/minecraft/class_10281;official lLdvl;l:Lcoc;
-
creakingUpdateTimer
private int creakingUpdateTimer- Mappings:
Namespace Name Mixin selector named creakingUpdateTimerLnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingUpdateTimer:Iintermediary field_54787Lnet/minecraft/class_10323;field_54787:Iofficial mLdvl;m:I
-
trailParticlesSpawnTimer
private int trailParticlesSpawnTimer- Mappings:
Namespace Name Mixin selector named trailParticlesSpawnTimerLnet/minecraft/block/entity/CreakingHeartBlockEntity;trailParticlesSpawnTimer:Iintermediary field_54788Lnet/minecraft/class_10323;field_54788:Iofficial nLdvl;n:I
-
lastCreakingPuppetPos
- Mappings:
Namespace Name Mixin selector named lastCreakingPuppetPosLnet/minecraft/block/entity/CreakingHeartBlockEntity;lastCreakingPuppetPos:Lnet/minecraft/util/math/Vec3d;intermediary field_54789Lnet/minecraft/class_10323;field_54789:Lnet/minecraft/class_243;official rLdvl;r:Lfbx;
-
field_54910
private int field_54910- Mappings:
Namespace Name Mixin selector named field_54910Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54910:Iintermediary field_54910Lnet/minecraft/class_10323;field_54910:Iofficial sLdvl;s:I
-
-
Constructor Details
-
CreakingHeartBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/CreakingHeartBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_10323;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldvl;<init>(Ljh;Ldxu;)V
-
-
Method Details
-
tick
public static void tick(World world, BlockPos pos, BlockState state, CreakingHeartBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/block/entity/CreakingHeartBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)Vintermediary method_64804Lnet/minecraft/class_10323;method_64804(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_10323;)Vofficial aLdvl;a(Ldhh;Ljh;Ldxu;Ldvl;)V
-
method_65012
private double method_65012()- Mappings:
Namespace Name Mixin selector named method_65012Lnet/minecraft/block/entity/CreakingHeartBlockEntity;method_65012()Dintermediary method_65012Lnet/minecraft/class_10323;method_65012()Dofficial jLdvl;j()D
-
spawnCreakingPuppet
@Nullable private static @Nullable TransientCreakingEntity spawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named spawnCreakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnCreakingPuppet(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)Lnet/minecraft/entity/mob/TransientCreakingEntity;intermediary method_64801Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/class_3218;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10281;official aLdvl;a(Lash;Ldvl;)Lcoc;
-
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 toBlockEntity.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:
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/CreakingHeartBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_64805Lnet/minecraft/class_10323;method_64805()Lnet/minecraft/class_2622;official bLdvl;b()Lacy;
-
toInitialChunkDataNbt
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 defaultBlockEntityUpdateS2CPacket."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 send all NBT data of this block entity saved to disk, return
BlockEntity.createNbt(net.minecraft.registry.RegistryWrapper.WrapperLookup).- Overrides:
toInitialChunkDataNbtin classBlockEntity- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_16887Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLduw;a(Ljs$a;)Lux;
-
onPuppetDamage
public void onPuppetDamage()- Mappings:
Namespace Name Mixin selector named onPuppetDamageLnet/minecraft/block/entity/CreakingHeartBlockEntity;onPuppetDamage()Vintermediary method_64806Lnet/minecraft/class_10323;method_64806()Vofficial cLdvl;c()V
-
spawnTrailParticles
- Mappings:
Namespace Name Mixin selector named spawnTrailParticlesLnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnTrailParticles(Lnet/minecraft/server/world/ServerWorld;IZ)Vintermediary method_64800Lnet/minecraft/class_10323;method_64800(Lnet/minecraft/class_3218;IZ)Vofficial aLdvl;a(Lash;IZ)V
-
onBreak
- Mappings:
Namespace Name Mixin selector named onBreakLnet/minecraft/block/entity/CreakingHeartBlockEntity;onBreak(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_64802Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/class_1282;)Vofficial aLdvl;a(Lbtz;)V
-
isPuppet
- Mappings:
Namespace Name Mixin selector named isPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;isPuppet(Lnet/minecraft/entity/mob/CreakingEntity;)Zintermediary method_64803Lnet/minecraft/class_10323;method_64803(Lnet/minecraft/class_10275;)Zofficial aLdvl;a(Lcoa;)Z
-
method_65010
public int method_65010()- Mappings:
Namespace Name Mixin selector named method_65010Lnet/minecraft/block/entity/CreakingHeartBlockEntity;method_65010()Iintermediary method_65010Lnet/minecraft/class_10323;method_65010()Iofficial dLdvl;d()I
-
method_65011
public int method_65011()- Mappings:
Namespace Name Mixin selector named method_65011Lnet/minecraft/block/entity/CreakingHeartBlockEntity;method_65011()Iintermediary method_65011Lnet/minecraft/class_10323;method_65011()Iofficial fLdvl;f()I
-