Class CreakingHeartBlockEntity
- All Implemented Interfaces:
DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/CreakingHeartBlockEntityintermediary net/minecraft/class_10323official eju
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
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 voidReads 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 voidWrites data tonbt.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, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, readComponents, registerTracking, removeFromCopiedStackData, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
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 bLeju;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 aLeju;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 cLeju;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 dLeju;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 eLeju;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 fLeju;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 gLeju;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 hLeju;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 iLeju;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 jLeju;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 kLeju;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 lLeju;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 mLeju;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 qLeju;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 rLeju;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 sLeju;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 tLeju;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 uLeju;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 vLeju;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 wLeju;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 xLeju;x:Lfrf;
-
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 yLeju;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>Leju;<init>(Liz;Lemj;)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 aLeju;a(Ldup;Liz;Lemj;Leju;)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 aLeju;a(Ldup;Lemj;Liz;Leju;)Lemj;
-
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 hLeju;h()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 kLeju;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 aLeju;a(Ldai;)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 aLeju;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 lLeju;l()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 aLeju;a(Laxl;Leju;)Ldai;
-
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/CreakingHeartBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_64805Lnet/minecraft/class_10323;method_64805()Lnet/minecraft/class_2622;official aLeju;a()Ladm;
-
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 aLejd;a(Ljl$a;)Lve;
-
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 cLeju;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 mLeju;m()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 aLeju;a(Laxl;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 aLejd;a(Liz;Lemj;)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 aLeju;a(Lcer;)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 bLeju;b(Ldai;)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 dLeju;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 fLeju;f()I
-
readData
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:
readDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLejd;a(Lfll;)V
-
writeData
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:
writeDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLejd;a(Lfln;)V
-