Class CreakingHeartBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CreakingHeartBlockEntity
intermediary net/minecraft/class_10323
official dvl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private @Nullable TransientCreakingEntity
private int
static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
private double
boolean
isPuppet
(CreakingEntity creaking) void
onBreak
(@Nullable DamageSource damageSource) void
private static @Nullable TransientCreakingEntity
spawnCreakingPuppet
(ServerWorld world, CreakingHeartBlockEntity blockEntity) private void
spawnTrailParticles
(ServerWorld world, int count, boolean towardsPuppet) static void
tick
(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, ornull
to 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_54776
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54776:I
intermediary field_54776
Lnet/minecraft/class_10323;field_54776:I
official b
Ldvl;b:I
-
field_54775
public static final int field_54775- See Also:
- Mappings:
Namespace Name Mixin selector named field_54775
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54775:I
intermediary field_54775
Lnet/minecraft/class_10323;field_54775:I
official a
Ldvl;a:I
-
field_54777
private static final int field_54777- See Also:
- Mappings:
Namespace Name Mixin selector named field_54777
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54777:I
intermediary field_54777
Lnet/minecraft/class_10323;field_54777:I
official c
Ldvl;c:I
-
field_54778
private static final int field_54778- See Also:
- Mappings:
Namespace Name Mixin selector named field_54778
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54778:I
intermediary field_54778
Lnet/minecraft/class_10323;field_54778:I
official d
Ldvl;d:I
-
field_54779
private static final int field_54779- See Also:
- Mappings:
Namespace Name Mixin selector named field_54779
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54779:I
intermediary field_54779
Lnet/minecraft/class_10323;field_54779:I
official e
Ldvl;e:I
-
field_54780
private static final int field_54780- See Also:
- Mappings:
Namespace Name Mixin selector named field_54780
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54780:I
intermediary field_54780
Lnet/minecraft/class_10323;field_54780:I
official f
Ldvl;f:I
-
field_54781
private static final int field_54781- See Also:
- Mappings:
Namespace Name Mixin selector named field_54781
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54781:I
intermediary field_54781
Lnet/minecraft/class_10323;field_54781:I
official g
Ldvl;g:I
-
field_54782
private static final int field_54782- See Also:
- Mappings:
Namespace Name Mixin selector named field_54782
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54782:I
intermediary field_54782
Lnet/minecraft/class_10323;field_54782:I
official h
Ldvl;h:I
-
field_54783
private static final int field_54783- See Also:
- Mappings:
Namespace Name Mixin selector named field_54783
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54783:I
intermediary field_54783
Lnet/minecraft/class_10323;field_54783:I
official i
Ldvl;i:I
-
field_54784
private static final int field_54784- See Also:
- Mappings:
Namespace Name Mixin selector named field_54784
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54784:I
intermediary field_54784
Lnet/minecraft/class_10323;field_54784:I
official j
Ldvl;j:I
-
field_54785
private static final int field_54785- See Also:
- Mappings:
Namespace Name Mixin selector named field_54785
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54785:I
intermediary field_54785
Lnet/minecraft/class_10323;field_54785:I
official k
Ldvl;k:I
-
creakingPuppet
- Mappings:
Namespace Name Mixin selector named creakingPuppet
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingPuppet:Lnet/minecraft/entity/mob/TransientCreakingEntity;
intermediary field_54786
Lnet/minecraft/class_10323;field_54786:Lnet/minecraft/class_10281;
official l
Ldvl;l:Lcoc;
-
creakingUpdateTimer
private int creakingUpdateTimer- Mappings:
Namespace Name Mixin selector named creakingUpdateTimer
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingUpdateTimer:I
intermediary field_54787
Lnet/minecraft/class_10323;field_54787:I
official m
Ldvl;m:I
-
trailParticlesSpawnTimer
private int trailParticlesSpawnTimer- Mappings:
Namespace Name Mixin selector named trailParticlesSpawnTimer
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;trailParticlesSpawnTimer:I
intermediary field_54788
Lnet/minecraft/class_10323;field_54788:I
official n
Ldvl;n:I
-
lastCreakingPuppetPos
- Mappings:
Namespace Name Mixin selector named lastCreakingPuppetPos
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;lastCreakingPuppetPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_54789
Lnet/minecraft/class_10323;field_54789:Lnet/minecraft/class_243;
official r
Ldvl;r:Lfbx;
-
comparatorOutput
private int comparatorOutput- Mappings:
Namespace Name Mixin selector named comparatorOutput
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;comparatorOutput:I
intermediary field_54910
Lnet/minecraft/class_10323;field_54910:I
official s
Ldvl;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;)V
intermediary <init>
Lnet/minecraft/class_10323;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <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 tick
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)V
intermediary method_64804
Lnet/minecraft/class_10323;method_64804(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_10323;)V
official a
Ldvl;a(Ldhh;Ljh;Ldxu;Ldvl;)V
-
getDistanceToPuppet
private double getDistanceToPuppet()- Mappings:
Namespace Name Mixin selector named getDistanceToPuppet
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;getDistanceToPuppet()D
intermediary method_65012
Lnet/minecraft/class_10323;method_65012()D
official j
Ldvl;j()D
-
spawnCreakingPuppet
@Nullable private static @Nullable TransientCreakingEntity spawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named spawnCreakingPuppet
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnCreakingPuppet(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)Lnet/minecraft/entity/mob/TransientCreakingEntity;
intermediary method_64801
Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/class_3218;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10281;
official a
Ldvl;a(Lash;Ldvl;)Lcoc;
-
toUpdatePacket
Description copied from class:BlockEntity
Returns the packet to send to nearby players when the block entity's observable state changes, ornull
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 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:
toUpdatePacket
in classBlockEntity
- 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/CreakingHeartBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
intermediary method_64805
Lnet/minecraft/class_10323;method_64805()Lnet/minecraft/class_2622;
official b
Ldvl;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:
toInitialChunkDataNbt
in classBlockEntity
- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector named toInitialChunkDataNbt
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
official a
Lduw;a(Ljs$a;)Lux;
-
onPuppetDamage
public void onPuppetDamage()- Mappings:
Namespace Name Mixin selector named onPuppetDamage
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;onPuppetDamage()V
intermediary method_64806
Lnet/minecraft/class_10323;method_64806()V
official c
Ldvl;c()V
-
spawnTrailParticles
- Mappings:
Namespace Name Mixin selector named spawnTrailParticles
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnTrailParticles(Lnet/minecraft/server/world/ServerWorld;IZ)V
intermediary method_64800
Lnet/minecraft/class_10323;method_64800(Lnet/minecraft/class_3218;IZ)V
official a
Ldvl;a(Lash;IZ)V
-
onBreak
- Mappings:
Namespace Name Mixin selector named onBreak
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;onBreak(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_64802
Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/class_1282;)V
official a
Ldvl;a(Lbtz;)V
-
isPuppet
- Mappings:
Namespace Name Mixin selector named isPuppet
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;isPuppet(Lnet/minecraft/entity/mob/CreakingEntity;)Z
intermediary method_64803
Lnet/minecraft/class_10323;method_64803(Lnet/minecraft/class_10275;)Z
official a
Ldvl;a(Lcoa;)Z
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector named getComparatorOutput
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;getComparatorOutput()I
intermediary method_65010
Lnet/minecraft/class_10323;method_65010()I
official d
Ldvl;d()I
-
calcComparatorOutput
public int calcComparatorOutput()- Mappings:
Namespace Name Mixin selector named calcComparatorOutput
Lnet/minecraft/block/entity/CreakingHeartBlockEntity;calcComparatorOutput()I
intermediary method_65011
Lnet/minecraft/class_10323;method_65011()I
official f
Ldvl;f()I
-