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 SummaryConstructorsConstructorDescriptionRadiusNPCFlock(double radius) RadiusNPCFlock(double radius, int maxCacheTicks) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the NPCs to be considered part of a flock.
- 
Constructor Details- 
RadiusNPCFlockpublic RadiusNPCFlock(double radius) 
- 
RadiusNPCFlockpublic 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