net.minecraft.block.entity

public class CreakingHeartBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable, EntryConvertible

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
field_54776
field_54776
public static final int
CREAKING_ROAMING_RADIUS
field_54775
field_54775
private static final int
DISTANCE_CREAKING_TOO_FAR
field_54777
field_54777
private static final int
SPAWN_RANGE_XZ
field_54778
field_54778
private static final int
SPAWN_RANGE_Y
field_54779
field_54779
private static final int
ATTEMPTS_PER_SPAWN
field_54780
field_54780
private static final int
UPDATE_TICKS
field_54781
field_54781
private static final int
UPDATE_TICKS_VARIANCE
field_55498
field_55498
private static final int
HURT_CALL_TOTAL_TICKS
field_54782
field_54782
private static final int
NUMBER_OF_HURT_CALLS
field_54783
field_54783
private static final int
HURT_CALL_INTERVAL
field_54784
field_54784
private static final int
HURT_CALL_PARTICLE_TICKS
field_54785
field_54785
private static final int
MAX_DEPTH
field_55085
field_55085
private static final int
MAX_COUNT
field_55086
field_55086
private static final int
TICKS_GRACE_PERIOD
field_55499
field_55499
private static final Optional<CreakingEntity>
NO_CREAKING
field_55500
DEFAULT_CREAKING_PUPPET
private com.mojang.datafixers.util.Either<CreakingEntity, UUID>
creakingInfo
field_55501
creakingPuppet
private long
ticksExisted
field_55502
ticks
private int
ticker
field_54787
creakingUpdateTimer
private int
emitter
field_54788
trailParticlesSpawnTimer
private Vec3d
emitterTarget
field_54789
lastCreakingPuppetPos
private int
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)
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)
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()
method_65012()
getDistanceToPuppet()
private void
clearCreakingInfo()
method_65907()
clearCreakingPuppet()
public void
setCreakingInfo(Creaking creaking)
method_65905(class_10275 arg0)
setCreakingPuppet(CreakingEntity creakingPuppet)
public void
setCreakingInfo(UUID uuid)
method_65906(UUID arg0)
setCreakingPuppetFromUuid(UUID creakingPuppetUuid)
private Optional<CreakingEntity>
getCreakingProtector()
method_65805()
getCreakingPuppet()
private static CreakingEntity
spawnProtector(ServerLevel level, CreakingHeartBlockEntity entity)
method_64801(class_3218 arg0, class_10323 arg1)
spawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity)
public BlockEntityUpdateS2CPacket
getUpdatePacket()
method_38235()
toUpdatePacket()
public NbtCompound
getUpdateTag(HolderLookup$Provider registries)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public void
creakingHurt()
method_64806()
onPuppetDamage()
private Optional<BlockPos>
spreadResin(ServerLevel level)
method_65170(class_3218 arg0)
findResinGenerationPos(ServerWorld world)
private void
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)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
public void
removeProtector(DamageSource damageSource)
method_64802(class_1282 arg0)
killPuppet(DamageSource damageSource)
public boolean
isProtector(Creaking creaking)
method_64803(class_10275 arg0)
isPuppet(CreakingEntity creaking)
public int
getAnalogOutputSignal()
method_65010()
getComparatorOutput()
public int
computeAnalogOutputSignal()
method_65011()
calcComparatorOutput()
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public Packet
getUpdatePacket()
method_38235()
toUpdatePacket()
private static UUID
lambda$saveAdditional$0(UUID arg0)
method_65803(UUID arg0)
method_65803(UUID uuid)
private static Boolean
lambda$isProtector$0(Creaking arg0, Creaking arg1)
method_65801(class_10275 arg0, class_10275 arg1)
method_65801(CreakingEntity arg0, CreakingEntity puppet)
private static BlockPos$IterationState
lambda$spreadResin$1(ServerLevel arg0, RandomSource arg1, org.apache.commons.lang3.mutable.Mutable arg2, BlockPos arg3)
method_65169(class_3218 arg0, class_5819 arg1, org.apache.commons.lang3.mutable.Mutable arg2, class_2338 arg3)
method_65169(ServerWorld arg0, Random arg1, org.apache.commons.lang3.mutable.Mutable arg2, BlockPos pos)
private static void
lambda$spreadResin$0(RandomSource arg0, ServerLevel arg1, BlockPos arg2, Consumer arg3)
method_65168(class_5819 arg0, class_3218 arg1, class_2338 arg2, Consumer arg3)
method_65168(Random arg0, ServerWorld arg1, BlockPos pos, Consumer consumer)
private void
lambda$creakingHurt$0(BlockPos arg0)
method_65167(class_2338 arg0)
method_65167(BlockPos pos)
private Double
lambda$distanceToCreaking$0(Creaking arg0)
method_65804(class_10275 arg0)
method_65804(CreakingEntity creaking)
private static void
lambda$serverTick$0(CreakingHeartBlockEntity arg0, Creaking arg1)
method_65802(class_10323 arg0, class_10275 arg1)
method_65802(CreakingHeartBlockEntity arg0, CreakingEntity creaking)