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 named net/minecraft/entity/ai/goal/PrioritizedGoalintermediary net/minecraft/class_4135official ccd
-
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 named goalLnet/minecraft/entity/ai/goal/PrioritizedGoal;goal:Lnet/minecraft/entity/ai/goal/Goal;intermediary field_18416Lnet/minecraft/class_4135;field_18416:Lnet/minecraft/class_1352;official aLccd;a:Lcap;
-
priority
private final int priority- Mappings:
Namespace Name Mixin selector named priorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;priority:Iintermediary field_18417Lnet/minecraft/class_4135;field_18417:Iofficial bLccd;b:I
-
running
private boolean running- Mappings:
Namespace Name Mixin selector named runningLnet/minecraft/entity/ai/goal/PrioritizedGoal;running:Zintermediary field_18418Lnet/minecraft/class_4135;field_18418:Zofficial cLccd;c:Z
-
-
Constructor Details
-
PrioritizedGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/PrioritizedGoal;<init>(ILnet/minecraft/entity/ai/goal/Goal;)Vintermediary <init>Lnet/minecraft/class_4135;<init>(ILnet/minecraft/class_1352;)Vofficial <init>Lccd;<init>(ILcap;)V
-
-
Method Details
-
canBeReplacedBy
- Mappings:
Namespace Name Mixin selector named canBeReplacedByLnet/minecraft/entity/ai/goal/PrioritizedGoal;canBeReplacedBy(Lnet/minecraft/entity/ai/goal/PrioritizedGoal;)Zintermediary method_19055Lnet/minecraft/class_4135;method_19055(Lnet/minecraft/class_4135;)Zofficial aLccd;a(Lccd;)Z
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial bLcap;b()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 named shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial R_Lcap;R_()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 named getTickCountLnet/minecraft/entity/ai/goal/Goal;getTickCount(I)Iintermediary method_38847Lnet/minecraft/class_1352;method_38847(I)Iofficial aLcap;a(I)I
-
tick
public void tick() -
setControls
- Overrides:
setControlsin classGoal- Mappings:
Namespace Name Mixin selector named setControlsLnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)Vintermediary method_6265Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)Vofficial aLcap;a(Ljava/util/EnumSet;)V
-
getControls
- Overrides:
getControlsin classGoal- Mappings:
Namespace Name Mixin selector named getControlsLnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;intermediary method_6271Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;official jLcap;j()Ljava/util/EnumSet;
-
isRunning
public boolean isRunning()- Mappings:
Namespace Name Mixin selector named isRunningLnet/minecraft/entity/ai/goal/PrioritizedGoal;isRunning()Zintermediary method_19056Lnet/minecraft/class_4135;method_19056()Zofficial hLccd;h()Z
-
getPriority
public int getPriority()- Mappings:
Namespace Name Mixin selector named getPriorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;getPriority()Iintermediary method_19057Lnet/minecraft/class_4135;method_19057()Iofficial iLccd;i()I
-
getGoal
- Mappings:
Namespace Name Mixin selector named getGoalLnet/minecraft/entity/ai/goal/PrioritizedGoal;getGoal()Lnet/minecraft/entity/ai/goal/Goal;intermediary method_19058Lnet/minecraft/class_4135;method_19058()Lnet/minecraft/class_1352;official kLccd;k()Lcap;
-
equals
-
hashCode
public int hashCode()
-