Interface Raider

All Superinterfaces:
Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
All Known Subinterfaces:
Evoker, Illager, Illusioner, Pillager, Ravager, Spellcaster, Vindicator, Witch

public interface Raider
extends Monster
  • Method Details

    • getPatrolTarget

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

      void setPatrolTarget​(@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