Interface Ravager

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Enemy, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, Raider, ServerOperator, Sound.Emitter

public interface Ravager extends Raider
Illager beast.
  • Method Details

    • getAttackTicks

      int getAttackTicks()
      Gets how many ticks this ravager is attacking for. When attacking, the ravager cannot move.
      Returns:
      ticks attacking or -1 if they are currently not attacking
    • setAttackTicks

      void setAttackTicks(int ticks)
      Sets how many ticks this ravager is attacking for. When attacking, the ravager cannot move. This will tick down till it gets to -1, where this ravager will no longer be attacking.
      Parameters:
      ticks - ticks attacking or -1 if they should no longer be attacking
    • getStunnedTicks

      int getStunnedTicks()
      Gets how many ticks the ravager is stunned for. The ravager cannot move or attack while stunned. At 0, this will cause the ravager to roar.
      Returns:
      ticks stunned or -1 if they are currently not stunned
    • setStunnedTicks

      void setStunnedTicks(int ticks)
      Sets how many ticks the ravager is stunned for. The ravager cannot move or attack while stunned. At 0, this will cause the ravager to roar.
      Parameters:
      ticks - ticks stunned or -1 if they should no longer be stunned
    • getRoarTicks

      int getRoarTicks()
      Gets how many ticks the ravager is roaring for. While roaring, the ravager cannot move
      Returns:
      ticks roaring or -1 if they are currently not roaring
    • setRoarTicks

      void setRoarTicks(int ticks)
      Sets how many ticks the ravager is roaring for. While roaring, the ravager cannot move This will tick down till it gets to -1, where it is no longer active. If set to 11, this will play a sound and hurt nearby players.
      Parameters:
      ticks - ticks roaring or -1 if they should no longer be roaring