net.minecraft.block.entity

public class BellBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable, EntryConvertible

net.minecraft.world.level.block.entity.BellBlockEntity
net.minecraft.class_3721
net.minecraft.block.entity.BellBlockEntity

Field summary

Modifier and TypeField
private static final int
DURATION
field_31316
MAX_RINGING_TICKS
private static final int
GLOW_DURATION
field_31317
field_31317
private static final int
MIN_TICKS_BETWEEN_SEARCHES
field_31318
field_31318
private static final int
MAX_RESONATION_TICKS
field_31319
MAX_RESONATING_TICKS
private static final int
TICKS_BEFORE_RESONATION
field_31320
field_31320
private static final int
SEARCH_RADIUS
field_31321
field_31321
private static final int
HEAR_BELL_RADIUS
field_31322
MAX_BELL_HEARING_DISTANCE
private static final int
HIGHLIGHT_RAIDERS_RADIUS
field_31323
field_31323
private long
lastRingTimestamp
field_19155
lastRingTime
public int
ticks
field_17095
ringTicks
public boolean
shaking
field_17096
ringing
public Direction
clickDirection
field_17097
lastSideHit
private List<LivingEntity>
nearbyEntities
field_19156
hearingEntities
private boolean
resonating
field_19157
resonating
private int
resonationTicks
field_19158
resonateTime

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public boolean
triggerEvent(int b0, int b1)
method_11004(int arg0, int arg1)
onSyncedBlockEvent(int arg0, int arg1)
private static void
tick(Level level, BlockPos pos, BlockState state, BellBlockEntity entity, BellBlockEntity$ResonationEndAction onResonationEnd)
method_31658(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3721 arg3, class_3721$class_5557 arg4)
tick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity$Effect bellEffect)
public static void
clientTick(Level level, BlockPos pos, BlockState state, BellBlockEntity entity)
method_31657(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3721 arg3)
clientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity)
public static void
serverTick(Level level, BlockPos pos, BlockState state, BellBlockEntity entity)
method_31659(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3721 arg3)
serverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity)
public void
onHit(Direction clickDirection)
method_17031(class_2350 arg0)
activate(Direction direction)
private void
updateEntities()
method_20219()
notifyMemoriesOfBell()
private static boolean
areRaidersNearby(BlockPos bellPos, List<LivingEntity> nearbyEntities)
method_20523(class_2338 arg0, List<class_1309> arg1)
raidersHearBell(BlockPos pos, List<LivingEntity> hearingEntities)
private static void
makeRaidersGlow(Level level, BlockPos blockPos, List<LivingEntity> nearbyEntities)
method_20521(class_1937 arg0, class_2338 arg1, List<class_1309> arg2)
applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities)
private static void
showBellParticles(Level level, BlockPos bellPos, List<LivingEntity> nearbyEntities)
method_20218(class_1937 arg0, class_2338 arg1, List<class_1309> arg2)
applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities)
private static boolean
isRaiderWithinRange(BlockPos blockPos, LivingEntity entity)
method_20518(class_2338 arg0, class_1309 arg1)
isRaiderEntity(BlockPos pos, LivingEntity entity)
private static void
glow(LivingEntity raider)
method_20520(class_1309 arg0)
applyGlowToEntity(LivingEntity entity)
private static void
lambda$showBellParticles$2(BlockPos arg0, int arg1, org.apache.commons.lang3.mutable.MutableInt arg2, Level arg3, LivingEntity arg4)
method_20519(class_2338 arg0, int arg1, org.apache.commons.lang3.mutable.MutableInt arg2, class_1937 arg3, class_1309 arg4)
method_20519(BlockPos arg0, int arg1, org.apache.commons.lang3.mutable.MutableInt arg2, World arg3, LivingEntity entity)
private static boolean
lambda$showBellParticles$1(BlockPos arg0, LivingEntity arg1)
method_31660(class_2338 arg0, class_1309 arg1)
method_31660(BlockPos arg0, LivingEntity entity)
private static boolean
lambda$showBellParticles$0(BlockPos arg0, LivingEntity arg1)
method_20217(class_2338 arg0, class_1309 arg1)
method_20217(BlockPos arg0, LivingEntity entity)
private static boolean
lambda$makeRaidersGlow$0(BlockPos arg0, LivingEntity arg1)
method_31661(class_2338 arg0, class_1309 arg1)
method_31661(BlockPos arg0, LivingEntity entity)