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 SummaryFieldsModifier and TypeFieldDescriptionstatic doubleSample weight indicating high amount of influence from flocking.static doubleSample weight indicating low amount of influence from flocking.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidrun()voidsetMaxForce(double maxForce) Sets the maximum length of the resultant flocking vector.
- 
Field Details- 
HIGH_INFLUENCEpublic static double HIGH_INFLUENCESample weight indicating high amount of influence from flocking.
- 
LOW_INFLUENCEpublic static double LOW_INFLUENCESample weight indicating low amount of influence from flocking.
 
- 
- 
Constructor Details- 
Flocker
 
- 
- 
Method Details