Class EntityAICitizenChild
java.lang.Object
com.minecolonies.core.entity.ai.minimal.EntityAICitizenChild
- All Implemented Interfaces:
IStateAI
AI which controls child behaviour and growing.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityAICitizenChild(@NotNull EntityCitizen citizen) Instantiates this task. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()Returns whether the Goal should begin execution.
-
Field Details
-
child
-
-
Constructor Details
-
EntityAICitizenChild
Instantiates this task.- Parameters:
citizen- the citizen.
-
-
Method Details
-
canUse
public boolean canUse()Returns whether the Goal should begin execution. True when age less than 100, when a random (120) is chosen correctly, and when a citizen is nearby.
-