Package net.citizensnpcs.api.ai.flocking
Class RadiusNPCFlock
java.lang.Object
net.citizensnpcs.api.ai.flocking.RadiusNPCFlock
- All Implemented Interfaces:
NPCFlock
A dynamic flock of NPCs that checks for entity NPCs within a certain block radius.
-
Constructor Summary
ConstructorDescriptionRadiusNPCFlock
(double radius) RadiusNPCFlock
(double radius, int maxCacheTicks) -
Method Summary
Modifier and TypeMethodDescriptionReturns the NPCs to be considered part of a flock.
-
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 @seeEntity.getNearbyEntities(double, double, double)
maxCacheTicks
- the maximum cache ticks to cache the nearby NPC 'flock' (default 30)
-
-
Method Details