Class RadiusNPCFlock

java.lang.Object
net.citizensnpcs.api.ai.flocking.RadiusNPCFlock
All Implemented Interfaces:
NPCFlock

public class RadiusNPCFlock extends Object implements NPCFlock
A dynamic flock of NPCs that checks for entity NPCs within a certain block radius.
  • Constructor Details

    • RadiusNPCFlock

      public RadiusNPCFlock(double radius)
    • RadiusNPCFlock

      public RadiusNPCFlock(double radius, int maxCacheTicks)
      Parameters:
      radius - the radius to look for nearby NPCs, in blocks @see Entity.getNearbyEntities(double, double, double)
      maxCacheTicks - the maximum cache ticks to cache the nearby NPC 'flock' (default 30)
  • Method Details