Package net.minecraft.entity.ai.goal
Class PrioritizedGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.PrioritizedGoal
- Mappings:
Namespace Name intermediary net/minecraft/class_4135official bohnamed net/minecraft/entity/ai/goal/PrioritizedGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanStart()booleancanStop()booleangetGoal()intprotected intgetTickCount(int ticks) Returns how many times a goal can tick in the given at most.inthashCode()booleanvoidsetControls(EnumSet<Goal.Control> controls) booleanbooleanReturns if the goal should run every tick or not.voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
toGoalTicks, toString
-
Field Details
-
goal
- Mappings:
Namespace Name Mixin selector intermediary field_18416Lnet/minecraft/class_4135;field_18416:Lnet/minecraft/class_1352;official aLboh;a:Lbmt;named goalLnet/minecraft/entity/ai/goal/PrioritizedGoal;goal:Lnet/minecraft/entity/ai/goal/Goal;
-
priority
private final int priority- Mappings:
Namespace Name Mixin selector intermediary field_18417Lnet/minecraft/class_4135;field_18417:Iofficial bLboh;b:Inamed priorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;priority:I
-
running
private boolean running- Mappings:
Namespace Name Mixin selector intermediary field_18418Lnet/minecraft/class_4135;field_18418:Zofficial cLboh;c:Znamed runningLnet/minecraft/entity/ai/goal/PrioritizedGoal;running:Z
-
-
Constructor Details
-
PrioritizedGoal
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4135;<init>(ILnet/minecraft/class_1352;)Vofficial <init>Lboh;<init>(ILbmt;)Vnamed <init>Lnet/minecraft/entity/ai/goal/PrioritizedGoal;<init>(ILnet/minecraft/entity/ai/goal/Goal;)V
-
-
Method Details
-
canBeReplacedBy
- Mappings:
Namespace Name Mixin selector intermediary method_19055Lnet/minecraft/class_4135;method_19055(Lnet/minecraft/class_4135;)Zofficial aLboh;a(Lboh;)Znamed canBeReplacedByLnet/minecraft/entity/ai/goal/PrioritizedGoal;canBeReplacedBy(Lnet/minecraft/entity/ai/goal/PrioritizedGoal;)Z
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector intermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial bLbmt;b()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
canStop
public boolean canStop() -
start
public void start() -
stop
public void stop() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial J_Lbmt;J_()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
getTickCount
protected int getTickCount(int ticks) Returns how many times a goal can tick in the given at most.- Overrides:
getTickCountin classGoal- Returns:
- how many times a goal can tick in the given at most
- Mappings:
Namespace Name Mixin selector intermediary method_38847Lnet/minecraft/class_1352;method_38847(I)Iofficial aLbmt;a(I)Inamed getTickCountLnet/minecraft/entity/ai/goal/Goal;getTickCount(I)I
-
tick
public void tick() -
setControls
- Overrides:
setControlsin classGoal- Mappings:
Namespace Name Mixin selector intermediary method_6265Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)Vofficial aLbmt;a(Ljava/util/EnumSet;)Vnamed setControlsLnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V
-
getControls
- Overrides:
getControlsin classGoal- Mappings:
Namespace Name Mixin selector intermediary method_6271Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;official jLbmt;j()Ljava/util/EnumSet;named getControlsLnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;
-
isRunning
public boolean isRunning()- Mappings:
Namespace Name Mixin selector intermediary method_19056Lnet/minecraft/class_4135;method_19056()Zofficial hLboh;h()Znamed isRunningLnet/minecraft/entity/ai/goal/PrioritizedGoal;isRunning()Z
-
getPriority
public int getPriority()- Mappings:
Namespace Name Mixin selector intermediary method_19057Lnet/minecraft/class_4135;method_19057()Iofficial iLboh;i()Inamed getPriorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;getPriority()I
-
getGoal
- Mappings:
Namespace Name Mixin selector intermediary method_19058Lnet/minecraft/class_4135;method_19058()Lnet/minecraft/class_1352;official kLboh;k()Lbmt;named getGoalLnet/minecraft/entity/ai/goal/PrioritizedGoal;getGoal()Lnet/minecraft/entity/ai/goal/Goal;
-
equals
-
hashCode
public int hashCode()
-