Package net.minecraft.entity.ai.goal
Class PrioritizedGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.PrioritizedGoal
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeReplacedBy
(PrioritizedGoal p_220771_1_) boolean
boolean
canUse()
boolean
getFlags()
getGoal()
int
int
hashCode()
boolean
boolean
void
void
start()
void
stop()
void
tick()
-
Field Details
-
goal
-
priority
private final int priority -
isRunning
private boolean isRunning
-
-
Constructor Details
-
PrioritizedGoal
-
-
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() -
tick
public void tick() -
setFlags
-
getFlags
-
isRunning
public boolean isRunning() -
getPriority
public int getPriority() -
getGoal
-
equals
-
hashCode
public int hashCode()
-