Class WrappedGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.WrappedGoal
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intadjustedTickDelay(int ticks) booleancanBeReplacedBy(WrappedGoal goal) booleanbooleancanUse()booleangetFlags()getGoal()intinthashCode()booleanbooleanbooleanvoidvoidstart()voidstop()voidtick()Methods inherited from class Goal
getServerLevel, getServerLevel, reducedTickDelay, toString
-
Field Details
-
goal
-
priority
private final int priority -
isRunning
private boolean isRunning
-
-
Constructor Details
-
WrappedGoal
-
-
Method Details
-
canBeReplacedBy
-
canUse
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
isInterruptable
public boolean isInterruptable()- Overrides:
isInterruptablein classGoal
-
start
-
stop
-
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTickin classGoal
-
adjustedTickDelay
protected int adjustedTickDelay(int ticks) - Overrides:
adjustedTickDelayin classGoal
-
tick
-
setFlags
-
getFlags
-
isRunning
public boolean isRunning() -
getPriority
public int getPriority() -
getGoal
-
equals
-
hashCode
-