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 Details

    • lastRingTime

      private long lastRingTime
    • ringTicks

      public int ringTicks
    • ringing

      public boolean ringing
    • lastSideHit

      public Direction lastSideHit
    • hearingEntities

      private List<LivingEntity> 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 class BlockEntity
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
    • playResonateSound

      private void playResonateSound()
    • activate

      public void activate​(Direction direction)
    • notifyMemoriesOfBell

      private void notifyMemoriesOfBell()
    • raidersHearBell

      private boolean raidersHearBell()
    • applyGlowToRaiders

      private void applyGlowToRaiders​(World world)
    • applyParticlesToRaiders

      private void applyParticlesToRaiders​(World world)
    • isRaiderEntity

      private boolean isRaiderEntity​(LivingEntity entity)
    • applyGlowToEntity

      private void applyGlowToEntity​(LivingEntity entity)