public class Flocker extends Object implements Runnable
Runnable
. This should be run every tick, for example as part of
an overridden Trait.run()
.Modifier and Type | Field and Description |
---|---|
static double |
HIGH_INFLUENCE
Sample weight indicating high amount of influence from flocking.
|
static double |
LOW_INFLUENCE
Sample weight indicating low amount of influence from flocking.
|
Constructor and Description |
---|
Flocker(NPC npc,
NPCFlock flock,
FlockBehavior... behaviors) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
setMaxForce(double maxForce)
Sets the maximum length of the resultant flocking vector.
|
public static double HIGH_INFLUENCE
public static double LOW_INFLUENCE
public Flocker(NPC npc, NPCFlock flock, FlockBehavior... behaviors)
Copyright © 2021. All rights reserved.