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 intfield_19158private List<LivingEntity>hearingEntitiesprivate longlastRingTimeDirectionlastSideHitprivate booleanresonatingbooleanringingintringTicks -
Constructor Summary
Constructors Constructor Description BellBlockEntity() -
Method Summary
Modifier and Type Method Description voidactivate(Direction direction)private voidapplyGlowToRaiders(World world)private voidapplyParticlesToRaiders(World world)private voidglowEntity(LivingEntity entity)private booleanisRaiderEntity(LivingEntity entity)private booleanmethod_20523()private voidnotifyMemoriesOfBell()booleanonSyncedBlockEvent(int type, int data)private voidplayResonateSound()voidtick()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 -
field_19158
private int field_19158
-
-
Constructor Details
-
BellBlockEntity
public BellBlockEntity()
-
-
Method Details
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEventin classBlockEntity
-
tick
public void tick() -
playResonateSound
private void playResonateSound() -
activate
-
notifyMemoriesOfBell
private void notifyMemoriesOfBell() -
method_20523
private boolean method_20523() -
applyGlowToRaiders
-
applyParticlesToRaiders
-
isRaiderEntity
-
glowEntity
-