Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
public class BellBlockEntity extends BlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceBellBlockEntity.class_5557 -
Field Summary
Fields Modifier and Type Field Description private List<LivingEntity>hearingEntitiesprivate longlastRingTimeDirectionlastSideHitprivate intresonateTimeprivate booleanresonatingbooleanringingintringTicksFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description BellBlockEntity(BlockPos blockPos, BlockState blockState) -
Method Summary
Modifier and Type Method Description voidactivate(Direction direction)private static voidapplyGlowToEntity(LivingEntity livingEntity)private static voidapplyGlowToRaiders(World world, BlockPos blockPos, List<LivingEntity> list)private static voidapplyParticlesToRaiders(World world, BlockPos blockPos, List<LivingEntity> list)static voidclientTick(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity)private static booleanisRaiderEntity(BlockPos blockPos, LivingEntity entity)private static voidmethod_31658(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity, BellBlockEntity.class_5557 class_5557)private voidnotifyMemoriesOfBell()booleanonSyncedBlockEvent(int type, int data)private static booleanraidersHearBell(BlockPos blockPos, List<LivingEntity> list)static voidserverTick(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toTag, toUpdatePacket
-
Field Details
-
lastRingTime
private long lastRingTime -
ringTicks
public int ringTicks -
ringing
public boolean ringing -
lastSideHit
-
hearingEntities
-
resonating
private boolean resonating -
resonateTime
private int resonateTime
-
-
Constructor Details
-
BellBlockEntity
-
-
Method Details
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEventin classBlockEntity
-
method_31658
private static void method_31658(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity, BellBlockEntity.class_5557 class_5557) -
clientTick
public static void clientTick(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity) -
serverTick
public static void serverTick(World world, BlockPos blockPos, BlockState blockState, BellBlockEntity bellBlockEntity) -
activate
-
notifyMemoriesOfBell
private void notifyMemoriesOfBell() -
raidersHearBell
-
applyGlowToRaiders
-
applyParticlesToRaiders
private static void applyParticlesToRaiders(World world, BlockPos blockPos, List<LivingEntity> list) -
isRaiderEntity
-
applyGlowToEntity
-