Package net.minecraft.entity.ai.goal
Class PrioritizedGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.PrioritizedGoal
-
public class PrioritizedGoal extends Goal
-
-
Constructor Summary
Constructors Constructor Description PrioritizedGoal(int p_i50318_1_, Goal p_i50318_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeReplacedBy(PrioritizedGoal p_220771_1_)
boolean
canContinueToUse()
boolean
canUse()
boolean
equals(java.lang.Object p_equals_1_)
java.util.EnumSet<Goal.Flag>
getFlags()
Goal
getGoal()
int
getPriority()
int
hashCode()
boolean
isInterruptable()
boolean
isRunning()
void
setFlags(java.util.EnumSet<Goal.Flag> p_220684_1_)
void
start()
void
stop()
void
tick()
-
-
-
Field Detail
-
goal
private final Goal goal
-
priority
private final int priority
-
isRunning
private boolean isRunning
-
-
Constructor Detail
-
PrioritizedGoal
public PrioritizedGoal(int p_i50318_1_, Goal p_i50318_2_)
-
-
Method Detail
-
canBeReplacedBy
public boolean canBeReplacedBy(PrioritizedGoal p_220771_1_)
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
isInterruptable
public boolean isInterruptable()
- Overrides:
isInterruptable
in classGoal
-
setFlags
public void setFlags(java.util.EnumSet<Goal.Flag> p_220684_1_)
-
isRunning
public boolean isRunning()
-
getPriority
public int getPriority()
-
getGoal
public Goal getGoal()
-
equals
public boolean equals(@Nullable java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-