Interface Raider

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, 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