public class BellBlockEntity extends BlockEntity implements Tickable
Modifier and Type | Field and Description |
---|---|
private List<LivingEntity> |
hearingEntities |
private long |
lastRingTime |
Direction |
lastSideHit |
private int |
resonateTime |
private boolean |
resonating |
boolean |
ringing |
int |
ringTicks |
pos, removed, world
Constructor and Description |
---|
BellBlockEntity() |
Modifier and Type | Method and Description |
---|---|
void |
activate(Direction direction) |
private void |
applyGlowToEntity(LivingEntity entity) |
private void |
applyGlowToRaiders(World world) |
private void |
applyParticlesToRaiders(World world) |
private boolean |
isRaiderEntity(LivingEntity entity) |
private void |
notifyMemoriesOfBell() |
boolean |
onSyncedBlockEvent(int type,
int data) |
private void |
playResonateSound() |
private boolean |
raidersHearBell() |
void |
tick() |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag, toTag, toUpdatePacket
private long lastRingTime
public int ringTicks
public boolean ringing
public Direction lastSideHit
private List<LivingEntity> hearingEntities
private boolean resonating
private int resonateTime
public boolean onSyncedBlockEvent(int type, int data)
onSyncedBlockEvent
in class BlockEntity
private void playResonateSound()
public void activate(Direction direction)
private void notifyMemoriesOfBell()
private boolean raidersHearBell()
private void applyGlowToRaiders(World world)
private void applyParticlesToRaiders(World world)
private boolean isRaiderEntity(LivingEntity entity)
private void applyGlowToEntity(LivingEntity entity)