Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5486

Raider CanJoinRaid

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-492a779-83af86d (MC: 1.15.1) (Implementing API version 1.15.1-R0.1-SNAPSHOT)
    • Yes

      Usecase: A plugin spawns stationary NoAI raider mobs as NPCs. However, during a nearby raid mobs participating in a raid will recruite nearby other raider mobs to join the raid (see PathfinderGoalRaid), and raider mobs themselves will also periodically check for a nearby raid to join (see EntityRaider#movementTick). Minecraft's EntityRaider mob has a property "CanJoinRaid" which allows toggling whether the mob can join raids.

      Would it be possible to expose this 'CanJoinRaid' property of EntityRaider in Bukkit's Raider?

      I.e: Raider#isCanJoinRaid and #setCanJoinRaid

      Those would map to EntityRaider#eD() and EntityRaider#u(boolean)

       

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: