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/PrioritizedGoal- intermediary - net/minecraft/class_4135- official - cdu
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.GoalcastToServerWorld, getServerWorld, toGoalTicks, toString
- 
Field Details- 
goal- Mappings:
- Namespace - Name - Mixin selector - named - goal- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;goal:Lnet/minecraft/entity/ai/goal/Goal;- intermediary - field_18416- Lnet/minecraft/class_4135;field_18416:Lnet/minecraft/class_1352;- official - a- Lcdu;a:Lccg;
 
- 
priorityprivate final int priority- Mappings:
- Namespace - Name - Mixin selector - named - priority- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;priority:I- intermediary - field_18417- Lnet/minecraft/class_4135;field_18417:I- official - b- Lcdu;b:I
 
- 
runningprivate boolean running- Mappings:
- Namespace - Name - Mixin selector - named - running- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;running:Z- intermediary - field_18418- Lnet/minecraft/class_4135;field_18418:Z- official - c- Lcdu;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;)V- intermediary - <init>- Lnet/minecraft/class_4135;<init>(ILnet/minecraft/class_1352;)V- official - <init>- Lcdu;<init>(ILccg;)V
 
 
- 
- 
Method Details- 
canBeReplacedBy- Mappings:
- Namespace - Name - Mixin selector - named - canBeReplacedBy- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;canBeReplacedBy(Lnet/minecraft/entity/ai/goal/PrioritizedGoal;)Z- intermediary - method_19055- Lnet/minecraft/class_4135;method_19055(Lnet/minecraft/class_4135;)Z- official - a- Lcdu;a(Lcdu;)Z
 
- 
canStartpublic boolean canStart()
- 
shouldContinuepublic boolean shouldContinue()- Overrides:
- shouldContinuein class- Goal
- Mappings:
- Namespace - Name - Mixin selector - named - shouldContinue- Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z- intermediary - method_6266- Lnet/minecraft/class_1352;method_6266()Z- official - c- Lccg;c()Z
 
- 
canStoppublic boolean canStop()
- 
startpublic void start()
- 
stoppublic void stop()
- 
shouldRunEveryTickpublic 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 class- Goal
- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - shouldRunEveryTick- Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z- intermediary - method_38846- Lnet/minecraft/class_1352;method_38846()Z- official - V_- Lccg;V_()Z
 
- 
getTickCountprotected int getTickCount(int ticks) Returns how many times a goal can tick in the given at most.- Overrides:
- getTickCountin class- Goal
- Returns:
- how many times a goal can tick in the given at most
- Mappings:
- Namespace - Name - Mixin selector - named - getTickCount- Lnet/minecraft/entity/ai/goal/Goal;getTickCount(I)I- intermediary - method_38847- Lnet/minecraft/class_1352;method_38847(I)I- official - a- Lccg;a(I)I
 
- 
tickpublic void tick()
- 
setControls- Overrides:
- setControlsin class- Goal
- Mappings:
- Namespace - Name - Mixin selector - named - setControls- Lnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V- intermediary - method_6265- Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)V- official - a- Lccg;a(Ljava/util/EnumSet;)V
 
- 
getControls- Overrides:
- getControlsin class- Goal
- Mappings:
- Namespace - Name - Mixin selector - named - getControls- Lnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;- intermediary - method_6271- Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;- official - j- Lccg;j()Ljava/util/EnumSet;
 
- 
isRunningpublic boolean isRunning()- Mappings:
- Namespace - Name - Mixin selector - named - isRunning- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;isRunning()Z- intermediary - method_19056- Lnet/minecraft/class_4135;method_19056()Z- official - h- Lcdu;h()Z
 
- 
getPrioritypublic int getPriority()- Mappings:
- Namespace - Name - Mixin selector - named - getPriority- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;getPriority()I- intermediary - method_19057- Lnet/minecraft/class_4135;method_19057()I- official - i- Lcdu;i()I
 
- 
getGoal- Mappings:
- Namespace - Name - Mixin selector - named - getGoal- Lnet/minecraft/entity/ai/goal/PrioritizedGoal;getGoal()Lnet/minecraft/entity/ai/goal/Goal;- intermediary - method_19058- Lnet/minecraft/class_4135;method_19058()Lnet/minecraft/class_1352;- official - k- Lcdu;k()Lccg;
 
- 
equals
- 
hashCodepublic int hashCode()
 
-