Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
- All Implemented Interfaces:
Tickable
public class BellBlockEntity extends BlockEntity implements Tickable
-
Field Summary
Fields Modifier and Type Field Description private List<LivingEntity>
hearingEntities
private long
lastRingTime
Direction
lastSideHit
private int
resonateTime
private boolean
resonating
boolean
ringing
int
ringTicks
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description BellBlockEntity()
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, populateCrashReport, resetBlock, setLocation, setPos, 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
public BellBlockEntity()
-
-
Method Details
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEvent
in classBlockEntity
-
tick
public void tick() -
playResonateSound
private void playResonateSound() -
activate
-
notifyMemoriesOfBell
private void notifyMemoriesOfBell() -
raidersHearBell
private boolean raidersHearBell() -
applyGlowToRaiders
-
applyParticlesToRaiders
-
isRaiderEntity
-
applyGlowToEntity
-