Class CreakingHeartBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CreakingHeartBlockEntityintermediary net/minecraft/class_10323official dze
-
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 TypeMethodDescriptionintprivate voidprivate static BlockStategetBlockState(World world, BlockState state, BlockPos pos, CreakingHeartBlockEntity creakingHeart) intprivate Optional<CreakingEntity> private doublebooleanisPuppet(CreakingEntity creaking) voidkillPuppet(@Nullable DamageSource damageSource) voidonBlockReplaced(BlockPos pos, BlockState oldState) voidprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.voidsetCreakingPuppet(CreakingEntity creakingPuppet) voidsetCreakingPuppetFromUuid(UUID creakingPuppetUuid) 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 bLdze;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 aLdze;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 cLdze;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 dLdze;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 eLdze;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 fLdze;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 gLdze;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 hLdze;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 iLdze;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 jLdze;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 kLdze;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 lLdze;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 mLdze;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 qLdze;q: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 rLdze;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 sLdze;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 tLdze;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 uLdze;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 vLdze;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 wLdze;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 xLdze;x:Lfgc;
-
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 yLdze;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>Ldze;<init>(Liw;Lebq;)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 aLdze;a(Ldkj;Liw;Lebq;Ldze;)V
-
getBlockState
private static BlockState getBlockState(World world, BlockState state, BlockPos pos, CreakingHeartBlockEntity creakingHeart) - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/block/entity/CreakingHeartBlockEntity;getBlockState(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)Lnet/minecraft/block/BlockState;intermediary method_66475Lnet/minecraft/class_10323;method_66475(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_10323;)Lnet/minecraft/class_2680;official aLdze;a(Ldkj;Lebq;Liw;Ldze;)Lebq;
-
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 jLdze;j()D
-
clearCreakingPuppet
private void clearCreakingPuppet()- Mappings:
Namespace Name Mixin selector named clearCreakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;clearCreakingPuppet()Vintermediary method_65907Lnet/minecraft/class_10323;method_65907()Vofficial kLdze;k()V
-
setCreakingPuppet
- Mappings:
Namespace Name Mixin selector named setCreakingPuppetLnet/minecraft/block/entity/CreakingHeartBlockEntity;setCreakingPuppet(Lnet/minecraft/entity/mob/CreakingEntity;)Vintermediary method_65905Lnet/minecraft/class_10323;method_65905(Lnet/minecraft/class_10275;)Vofficial aLdze;a(Lcqo;)V
-
setCreakingPuppetFromUuid
- Mappings:
Namespace Name Mixin selector named setCreakingPuppetFromUuidLnet/minecraft/block/entity/CreakingHeartBlockEntity;setCreakingPuppetFromUuid(Ljava/util/UUID;)Vintermediary method_65906Lnet/minecraft/class_10323;method_65906(Ljava/util/UUID;)Vofficial aLdze;a(Ljava/util/UUID;)V
-
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 sLdze;s()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 aLdze;a(Lasb;Ldze;)Lcqo;
-
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 aLdze;a()Lacl;
-
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 aLdyo;a(Lji$a;)Lua;
-
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 cLdze;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 tLdze;t()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 aLdze;a(Lasb;IZ)V
-
onBlockReplaced
- Overrides:
onBlockReplacedin classBlockEntity- Mappings:
Namespace Name Mixin selector named onBlockReplacedLnet/minecraft/block/entity/BlockEntity;onBlockReplaced(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_66473Lnet/minecraft/class_2586;method_66473(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLdyo;a(Liw;Lebq;)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 aLdze;a(Lbvt;)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 bLdze;b(Lcqo;)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 dLdze;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 fLdze;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 aLdyo;a(Lua;Lji$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 bLdyo;b(Lua;Lji$a;)V
-