Interface Raider

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Enemy, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Evoker, Illager, Illusioner, Pillager, Ravager, Spellcaster, Vindicator, Witch

public interface Raider extends Monster
  • Method Details

    • getPatrolTarget

      @Nullable @Nullable Block getPatrolTarget()
      Gets the block the raider is targeting to patrol.
      Returns:
      target block or null
    • setPatrolTarget

      void setPatrolTarget(@Nullable @Nullable Block block)
      Sets the block the raider is targeting to patrol.
      Parameters:
      block - target block or null. Must be in same world as the entity
    • isPatrolLeader

      boolean isPatrolLeader()
      Gets whether this entity is a patrol leader.
      Returns:
      patrol leader status
    • setPatrolLeader

      void setPatrolLeader(boolean leader)
      Sets whether this entity is a patrol leader.
      Parameters:
      leader - patrol leader status
    • isCanJoinRaid

      boolean isCanJoinRaid()
      Gets whether this mob can join an active raid.
      Returns:
      CanJoinRaid status
    • setCanJoinRaid

      void setCanJoinRaid(boolean join)
      Sets whether this mob can join an active raid.
      Parameters:
      join - CanJoinRaid status
    • getCelebrationSound

      @NotNull @NotNull Sound getCelebrationSound()
      Get the Sound this entity will play when celebrating.
      Returns:
      the celebration sound
    • isCelebrating

      boolean isCelebrating()
      Returns whether the raider is celebrating a raid victory.
      Returns:
      whether the raider is celebrating a raid victory
    • setCelebrating

      void setCelebrating(boolean celebrating)
      Sets whether the raider is celebrating a raid victory.
      Parameters:
      celebrating - whether the raider is celebrating a raid victory