Class CreakingHeartBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CreakingHeartBlockEntityintermediary net/minecraft/class_10323official dum
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate @Nullable com.mojang.datafixers.util.Either<CreakingEntity, UUID> private intprivate static final Optional<CreakingEntity> 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 static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate longprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintprivate Optional<CreakingEntity> private doublebooleanisPuppet(CreakingEntity creaking) voidkillPuppet(@Nullable DamageSource damageSource) voidprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.private static @Nullable CreakingEntityspawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity) private voidspawnTrailParticles(ServerWorld world, int count, boolean towardsPuppet) 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.protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, 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, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
-
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 bLdum;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 aLdum;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 cLdum;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 dLdum;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 eLdum;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 fLdum;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 gLdum;g:I
-
field_55498
private static final int field_55498- See Also:
- Mappings:
Namespace Name Mixin selector named field_55498Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55498:Iintermediary field_55498Lnet/minecraft/class_10323;field_55498:Iofficial hLdum;h: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 iLdum;i: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 jLdum;j: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 kLdum;k: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 lLdum;l:I
-
field_55085
private static final int field_55085- See Also:
- Mappings:
Namespace Name Mixin selector named field_55085Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55085:Iintermediary field_55085Lnet/minecraft/class_10323;field_55085:Iofficial mLdum;m:I
-
field_55086
private static final int field_55086- See Also:
- Mappings:
Namespace Name Mixin selector named field_55086Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55086:Iintermediary field_55086Lnet/minecraft/class_10323;field_55086:Iofficial nLdum;n:I
-
field_55499
private static final int field_55499- See Also:
- Mappings:
Namespace Name Mixin selector named field_55499Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55499:Iintermediary field_55499Lnet/minecraft/class_10323;field_55499:Iofficial rLdum;r:I
-
DEFAULT_CREAKING_PUPPET
- Mappings:
Namespace Name Mixin selector named DEFAULT_CREAKING_PUPPETLnet/minecraft/block/entity/CreakingHeartBlockEntity;DEFAULT_CREAKING_PUPPET:Ljava/util/Optional;intermediary field_55500Lnet/minecraft/class_10323;field_55500:Ljava/util/Optional;official sLdum;s:Ljava/util/Optional;
-
creakingPuppet
- Mappings:
Namespace Name Mixin selector named creakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingPuppet:Lcom/mojang/datafixers/util/Either;intermediary field_55501Lnet/minecraft/class_10323;field_55501:Lcom/mojang/datafixers/util/Either;official tLdum;t:Lcom/mojang/datafixers/util/Either;
-
ticks
private long ticks- Mappings:
Namespace Name Mixin selector named ticksLnet/minecraft/block/entity/CreakingHeartBlockEntity;ticks:Jintermediary field_55502Lnet/minecraft/class_10323;field_55502:Jofficial uLdum;u:J
-
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 vLdum;v: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 wLdum;w: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 xLdum;x:Lfay;
-
comparatorOutput
private int comparatorOutput- Mappings:
Namespace Name Mixin selector named comparatorOutputLnet/minecraft/block/entity/CreakingHeartBlockEntity;comparatorOutput:Iintermediary field_54910Lnet/minecraft/class_10323;field_54910:Iofficial yLdum;y: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>Ldum;<init>(Lji;Ldwv;)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 aLdum;a(Ldgg;Lji;Ldwv;Ldum;)V
-
getDistanceToPuppet
private double getDistanceToPuppet()- Mappings:
Namespace Name Mixin selector named getDistanceToPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;getDistanceToPuppet()Dintermediary method_65012Lnet/minecraft/class_10323;method_65012()Dofficial jLdum;j()D
-
getCreakingPuppet
- Mappings:
Namespace Name Mixin selector named getCreakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;getCreakingPuppet()Ljava/util/Optional;intermediary method_65805Lnet/minecraft/class_10323;method_65805()Ljava/util/Optional;official kLdum;k()Ljava/util/Optional;
-
spawnCreakingPuppet
@Nullable private static @Nullable CreakingEntity 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/CreakingEntity;intermediary method_64801Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/class_3218;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10275;official aLdum;a(Larc;Ldum;)Lcna;
-
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 bLdum;b()Labr;
-
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 aLdtx;a(Ljt$a;)Ltq;
-
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 cLdum;c()V
-
findResinGenerationPos
- Mappings:
Namespace Name Mixin selector named findResinGenerationPosLnet/minecraft/block/entity/CreakingHeartBlockEntity;findResinGenerationPos()Ljava/util/Optional;intermediary method_65170Lnet/minecraft/class_10323;method_65170()Ljava/util/Optional;official sLdum;s()Ljava/util/Optional;
-
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 aLdum;a(Larc;IZ)V
-
killPuppet
- Mappings:
Namespace Name Mixin selector named killPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;killPuppet(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_64802Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/class_1282;)Vofficial aLdum;a(Lbsz;)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 aLdum;a(Lcna;)Z
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/entity/CreakingHeartBlockEntity;getComparatorOutput()Iintermediary method_65010Lnet/minecraft/class_10323;method_65010()Iofficial dLdum;d()I
-
calcComparatorOutput
public int calcComparatorOutput()- Mappings:
Namespace Name Mixin selector named calcComparatorOutputLnet/minecraft/block/entity/CreakingHeartBlockEntity;calcComparatorOutput()Iintermediary method_65011Lnet/minecraft/class_10323;method_65011()Iofficial fLdum;f()I
-
readNbt
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdtx;a(Ltq;Ljt$a;)V
-
writeNbt
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdtx;b(Ltq;Ljt$a;)V
-