Package net.citizensnpcs.api.ai.flocking
Class Flocker
java.lang.Object
net.citizensnpcs.api.ai.flocking.Flocker
- All Implemented Interfaces:
Runnable
Implements a simple flocking controller as a
Runnable
. This should be run every tick, for example as part of
an overridden Trait.run()
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
Sample weight indicating high amount of influence from flocking.static double
Sample weight indicating low amount of influence from flocking. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
void
setMaxForce
(double maxForce) Sets the maximum length of the resultant flocking vector.
-
Field Details
-
HIGH_INFLUENCE
public static double HIGH_INFLUENCESample weight indicating high amount of influence from flocking. -
LOW_INFLUENCE
public static double LOW_INFLUENCESample weight indicating low amount of influence from flocking.
-
-
Constructor Details
-
Flocker
-
-
Method Details