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 official brrintermediary net/minecraft/class_4135named 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 official aLbrr;a:Lbqd;intermediary field_18416Lnet/minecraft/class_4135;field_18416:Lnet/minecraft/class_1352;named goalLnet/minecraft/entity/ai/goal/PrioritizedGoal;goal:Lnet/minecraft/entity/ai/goal/Goal;
-
priority
private final int priority- Mappings:
Namespace Name Mixin selector official bLbrr;b:Iintermediary field_18417Lnet/minecraft/class_4135;field_18417:Inamed priorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;priority:I
-
running
private boolean running- Mappings:
Namespace Name Mixin selector official cLbrr;c:Zintermediary field_18418Lnet/minecraft/class_4135;field_18418:Znamed runningLnet/minecraft/entity/ai/goal/PrioritizedGoal;running:Z
-
-
Constructor Details
-
PrioritizedGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbrr;<init>(ILbqd;)Vintermediary <init>Lnet/minecraft/class_4135;<init>(ILnet/minecraft/class_1352;)Vnamed <init>Lnet/minecraft/entity/ai/goal/PrioritizedGoal;<init>(ILnet/minecraft/entity/ai/goal/Goal;)V
-
-
Method Details
-
canBeReplacedBy
- Mappings:
Namespace Name Mixin selector official aLbrr;a(Lbrr;)Zintermediary method_19055Lnet/minecraft/class_4135;method_19055(Lnet/minecraft/class_4135;)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 official bLbqd;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()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 official J_Lbqd;J_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()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 official aLbqd;a(I)Iintermediary method_38847Lnet/minecraft/class_1352;method_38847(I)Inamed getTickCountLnet/minecraft/entity/ai/goal/Goal;getTickCount(I)I
-
tick
public void tick() -
setControls
- Overrides:
setControlsin classGoal- Mappings:
Namespace Name Mixin selector official aLbqd;a(Ljava/util/EnumSet;)Vintermediary method_6265Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)Vnamed setControlsLnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V
-
getControls
- Overrides:
getControlsin classGoal- Mappings:
Namespace Name Mixin selector official jLbqd;j()Ljava/util/EnumSet;intermediary method_6271Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;named getControlsLnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;
-
isRunning
public boolean isRunning()- Mappings:
Namespace Name Mixin selector official hLbrr;h()Zintermediary method_19056Lnet/minecraft/class_4135;method_19056()Znamed isRunningLnet/minecraft/entity/ai/goal/PrioritizedGoal;isRunning()Z
-
getPriority
public int getPriority()- Mappings:
Namespace Name Mixin selector official iLbrr;i()Iintermediary method_19057Lnet/minecraft/class_4135;method_19057()Inamed getPriorityLnet/minecraft/entity/ai/goal/PrioritizedGoal;getPriority()I
-
getGoal
- Mappings:
Namespace Name Mixin selector official kLbrr;k()Lbqd;intermediary method_19058Lnet/minecraft/class_4135;method_19058()Lnet/minecraft/class_1352;named getGoalLnet/minecraft/entity/ai/goal/PrioritizedGoal;getGoal()Lnet/minecraft/entity/ai/goal/Goal;
-
equals
-
hashCode
public int hashCode()
-