Class WrappedGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.WrappedGoal
This is an internal object used by the GoalSelector to choose between Goals.
In most cases, it should not be constructed directly.
For information on how individual methods work, see the javadocs for Goal:
invalid reference
net.minecraft.entity.ai.goal.Goal
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
adjustedTickDelay
(int pAdjustment) boolean
canBeReplacedBy
(WrappedGoal pOther) boolean
boolean
canUse()
boolean
getFlags()
getGoal()
int
int
hashCode()
boolean
boolean
boolean
void
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
reducedTickDelay, toString
-
Field Details
-
goal
-
priority
private final int priority -
isRunning
private boolean isRunning
-
-
Constructor Details
-
WrappedGoal
-
-
Method Details
-
canBeReplacedBy
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
isInterruptable
public boolean isInterruptable()- Overrides:
isInterruptable
in classGoal
-
start
public void start() -
stop
public void stop() -
requiresUpdateEveryTick
public boolean requiresUpdateEveryTick()- Overrides:
requiresUpdateEveryTick
in classGoal
-
adjustedTickDelay
protected int adjustedTickDelay(int pAdjustment) - Overrides:
adjustedTickDelay
in classGoal
-
tick
public void tick() -
setFlags
-
getFlags
-
isRunning
public boolean isRunning() -
getPriority
public int getPriority() -
getGoal
-
equals
-
hashCode
public int hashCode()
-