Class EntityAICitizenWander
java.lang.Object
com.minecolonies.core.entity.ai.minimal.EntityAICitizenWander
- All Implemented Interfaces:
IStateAI
Entity action to wander randomly around.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe different types of AIStates related to wandering. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityCitizenThe citizen that is wandering.protected final doubleWandering speed. -
Constructor Summary
ConstructorsConstructorDescriptionEntityAICitizenWander(EntityCitizen citizen, double speed) Instantiates this task. -
Method Summary
-
Field Details
-
citizen
The citizen that is wandering. -
speed
protected final double speedWandering speed.
-
-
Constructor Details
-
EntityAICitizenWander
Instantiates this task.- Parameters:
citizen- the citizen.speed- the speed.
-
-
Method Details
-
canUse
public boolean canUse()
-