net.minecraft.block.entity

public class CreakingHeartBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable, EntryConvertible

net.minecraft.world.level.block.entity.CreakingHeartBlockEntity
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity
net.minecraft.class_10323
net.minecraft.block.entity.CreakingHeartBlockEntity

Field summary

Modifier and TypeField
private static final int
PLAYER_DETECTION_RANGE
PLAYER_DETECTION_RANGE
field_54776
field_54776
public static final int
CREAKING_ROAMING_RADIUS
CREAKING_ROAMING_RADIUS
field_54775
field_54775
private static final int
DISTANCE_CREAKING_TOO_FAR
DISTANCE_CREAKING_TOO_FAR
field_54777
field_54777
private static final int
SPAWN_RANGE_XZ
SPAWN_RANGE_XZ
field_54778
field_54778
private static final int
SPAWN_RANGE_Y
SPAWN_RANGE_Y
field_54779
field_54779
private static final int
ATTEMPTS_PER_SPAWN
ATTEMPTS_PER_SPAWN
field_54780
field_54780
private static final int
UPDATE_TICKS
UPDATE_TICKS
field_54781
field_54781
private static final int
UPDATE_TICKS_VARIANCE
UPDATE_TICKS_VARIANCE
field_55498
field_55498
private static final int
HURT_CALL_TOTAL_TICKS
HURT_CALL_TOTAL_TICKS
field_54782
field_54782
private static final int
NUMBER_OF_HURT_CALLS
NUMBER_OF_HURT_CALLS
field_54783
field_54783
private static final int
HURT_CALL_INTERVAL
HURT_CALL_INTERVAL
field_54784
field_54784
private static final int
HURT_CALL_PARTICLE_TICKS
HURT_CALL_PARTICLE_TICKS
field_54785
field_54785
private static final int
MAX_DEPTH
MAX_DEPTH
field_55085
field_55085
private static final int
MAX_COUNT
MAX_COUNT
field_55086
field_55086
private static final int
TICKS_GRACE_PERIOD
TICKS_GRACE_PERIOD
field_55499
field_55499
private static final Optional<CreakingEntity>
NO_CREAKING
NO_CREAKING
field_55500
DEFAULT_CREAKING_PUPPET
private com.mojang.datafixers.util.Either<CreakingEntity, UUID>
creakingInfo
creakingInfo
field_55501
creakingPuppet
private long
ticksExisted
ticksExisted
field_55502
ticks
private int
ticker
ticker
field_54787
creakingUpdateTimer
private int
emitter
emitter
field_54788
trailParticlesSpawnTimer
private Vec3d
emitterTarget
emitterTarget
field_54789
lastCreakingPuppetPos
private int
outputSignal
outputSignal
field_54910
comparatorOutput

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public static void
serverTick(Level level, BlockPos pos, BlockState state, CreakingHeartBlockEntity entity)
serverTick(Level level, BlockPos pos, BlockState state, CreakingHeartBlockEntity entity)
method_64804(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_10323 arg3)
tick(World world, BlockPos pos, BlockState state, CreakingHeartBlockEntity blockEntity)
private static BlockState
updateCreakingState(Level level, BlockState state, BlockPos pos, CreakingHeartBlockEntity entity)
updateCreakingState(Level level, BlockState state, BlockPos pos, CreakingHeartBlockEntity entity)
method_66475(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_10323 arg3)
getBlockState(World world, BlockState state, BlockPos pos, CreakingHeartBlockEntity creakingHeart)
private double
distanceToCreaking()
distanceToCreaking()
method_65012()
getDistanceToPuppet()
private void
clearCreakingInfo()
clearCreakingInfo()
method_65907()
clearCreakingPuppet()
public void
setCreakingInfo(Creaking creaking)
setCreakingInfo(Creaking creaking)
method_65905(class_10275 arg0)
setCreakingPuppet(CreakingEntity creakingPuppet)
public void
setCreakingInfo(UUID uuid)
setCreakingInfo(UUID uuid)
method_65906(UUID arg0)
setCreakingPuppetFromUuid(UUID creakingPuppetUuid)
private Optional<CreakingEntity>
getCreakingProtector()
getCreakingProtector()
method_65805()
getCreakingPuppet()
private static CreakingEntity
spawnProtector(ServerLevel level, CreakingHeartBlockEntity entity)
spawnProtector(ServerLevel level, CreakingHeartBlockEntity entity)
method_64801(class_3218 arg0, class_10323 arg1)
spawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity)
public BlockEntityUpdateS2CPacket
getUpdatePacket()
getUpdatePacket()
method_38235()
toUpdatePacket()
public NbtCompound
getUpdateTag(HolderLookup$Provider registries)
getUpdateTag(HolderLookup$Provider registries)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public void
creakingHurt()
creakingHurt()
method_64806()
onPuppetDamage()
private Optional<BlockPos>
spreadResin(ServerLevel level)
spreadResin(ServerLevel level)
method_65170(class_3218 arg0)
findResinGenerationPos(ServerWorld world)
private void
emitParticles(ServerLevel serverLevel, int count, boolean towardsCreaking)
emitParticles(ServerLevel serverLevel, int count, boolean towardsCreaking)
method_64800(class_3218 arg0, int arg1, boolean arg2)
spawnTrailParticles(ServerWorld world, int count, boolean towardsPuppet)
public void
preRemoveSideEffects(BlockPos pos, BlockState state)
preRemoveSideEffects(BlockPos pos, BlockState state)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
public void
removeProtector(DamageSource damageSource)
removeProtector(DamageSource damageSource)
method_64802(class_1282 arg0)
killPuppet(DamageSource damageSource)
public boolean
isProtector(Creaking creaking)
isProtector(Creaking creaking)
method_64803(class_10275 arg0)
isPuppet(CreakingEntity creaking)
public int
getAnalogOutputSignal()
getAnalogOutputSignal()
method_65010()
getComparatorOutput()
public int
computeAnalogOutputSignal()
computeAnalogOutputSignal()
method_65011()
calcComparatorOutput()
protected void
loadAdditional(ValueInput input)
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)