Class Fox.SleepGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Fox.FoxBehaviorGoal
net.minecraft.world.entity.animal.Fox.SleepGoal
- Enclosing class:
- Fox
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final int
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.entity.animal.Fox.FoxBehaviorGoal
alertable, hasShelter
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
WAIT_TIME_BEFORE_SLEEP
private static final int WAIT_TIME_BEFORE_SLEEP -
countdown
private int countdown
-
-
Constructor Details
-
SleepGoal
public SleepGoal()
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
canSleep
private boolean canSleep() -
stop
public void stop() -
start
public void start()
-