Class BellTileEntity

All Implemented Interfaces:
ITickableTileEntity, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>

public class BellTileEntity extends TileEntity implements ITickableTileEntity
  • Field Details

    • lastRingTimestamp

      private long lastRingTimestamp
    • ticks

      public int ticks
    • shaking

      public boolean shaking
    • clickDirection

      public Direction clickDirection
    • nearbyEntities

      private List<LivingEntity> nearbyEntities
    • resonating

      private boolean resonating
    • resonationTicks

      private int resonationTicks
  • Constructor Details

    • BellTileEntity

      public BellTileEntity()
  • Method Details

    • triggerEvent

      public boolean triggerEvent(int p_145842_1_, int p_145842_2_)
      Overrides:
      triggerEvent in class TileEntity
    • tick

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

      private void playResonateSound()
    • onHit

      public void onHit(Direction p_213939_1_)
    • updateEntities

      private void updateEntities()
    • areRaidersNearby

      private boolean areRaidersNearby()
    • makeRaidersGlow

      private void makeRaidersGlow(World p_222828_1_)
    • showBellParticles

      private void showBellParticles(World p_222826_1_)
    • isRaiderWithinRange

      private boolean isRaiderWithinRange(LivingEntity p_222832_1_)
    • glow

      private void glow(LivingEntity p_222827_1_)