Package net.minecraft.entity.ai.goal
Class TemptGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TemptGoal
- Direct Known Subclasses:
CatEntity.TemptGoal
,OcelotEntity.OcelotTemptGoal
- Mappings:
Namespace Name official bod
intermediary net/minecraft/class_1391
named net/minecraft/entity/ai/goal/TemptGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final boolean
protected @Nullable PlayerEntity
private int
private final Ingredient
private double
private double
private double
private double
private double
protected final PathAwareEntity
private final TargetPredicate
private final double
private static final TargetPredicate
-
Constructor Summary
ConstructorDescriptionTemptGoal
(PathAwareEntity entity, double speed, Ingredient food, boolean canBeScared) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
canStart()
boolean
isActive()
private boolean
isTemptedBy
(LivingEntity entity) boolean
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
TEMPTING_ENTITY_PREDICATE
- Mappings:
Namespace Name Mixin selector official c
Lbod;c:Lbqm;
intermediary field_18090
Lnet/minecraft/class_1391;field_18090:Lnet/minecraft/class_4051;
named TEMPTING_ENTITY_PREDICATE
Lnet/minecraft/entity/ai/goal/TemptGoal;TEMPTING_ENTITY_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
-
predicate
- Mappings:
Namespace Name Mixin selector official d
Lbod;d:Lbqm;
intermediary field_28404
Lnet/minecraft/class_1391;field_28404:Lnet/minecraft/class_4051;
named predicate
Lnet/minecraft/entity/ai/goal/TemptGoal;predicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
mob
- Mappings:
Namespace Name Mixin selector official a
Lbod;a:Lbgi;
intermediary field_6616
Lnet/minecraft/class_1391;field_6616:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/TemptGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official e
Lbod;e:D
intermediary field_6615
Lnet/minecraft/class_1391;field_6615:D
named speed
Lnet/minecraft/entity/ai/goal/TemptGoal;speed:D
-
lastPlayerX
private double lastPlayerX- Mappings:
Namespace Name Mixin selector official f
Lbod;f:D
intermediary field_6614
Lnet/minecraft/class_1391;field_6614:D
named lastPlayerX
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerX:D
-
lastPlayerY
private double lastPlayerY- Mappings:
Namespace Name Mixin selector official g
Lbod;g:D
intermediary field_6611
Lnet/minecraft/class_1391;field_6611:D
named lastPlayerY
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerY:D
-
lastPlayerZ
private double lastPlayerZ- Mappings:
Namespace Name Mixin selector official h
Lbod;h:D
intermediary field_6621
Lnet/minecraft/class_1391;field_6621:D
named lastPlayerZ
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerZ:D
-
lastPlayerPitch
private double lastPlayerPitch- Mappings:
Namespace Name Mixin selector official i
Lbod;i:D
intermediary field_6619
Lnet/minecraft/class_1391;field_6619:D
named lastPlayerPitch
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerPitch:D
-
lastPlayerYaw
private double lastPlayerYaw- Mappings:
Namespace Name Mixin selector official j
Lbod;j:D
intermediary field_6618
Lnet/minecraft/class_1391;field_6618:D
named lastPlayerYaw
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerYaw:D
-
closestPlayer
- Mappings:
Namespace Name Mixin selector official b
Lbod;b:Lbyo;
intermediary field_6617
Lnet/minecraft/class_1391;field_6617:Lnet/minecraft/class_1657;
named closestPlayer
Lnet/minecraft/entity/ai/goal/TemptGoal;closestPlayer:Lnet/minecraft/entity/player/PlayerEntity;
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector official k
Lbod;k:I
intermediary field_6612
Lnet/minecraft/class_1391;field_6612:I
named cooldown
Lnet/minecraft/entity/ai/goal/TemptGoal;cooldown:I
-
active
private boolean active- Mappings:
Namespace Name Mixin selector official l
Lbod;l:Z
intermediary field_6613
Lnet/minecraft/class_1391;field_6613:Z
named active
Lnet/minecraft/entity/ai/goal/TemptGoal;active:Z
-
food
- Mappings:
Namespace Name Mixin selector official m
Lbod;m:Lciz;
intermediary field_6622
Lnet/minecraft/class_1391;field_6622:Lnet/minecraft/class_1856;
named food
Lnet/minecraft/entity/ai/goal/TemptGoal;food:Lnet/minecraft/recipe/Ingredient;
-
canBeScared
private final boolean canBeScared- Mappings:
Namespace Name Mixin selector official n
Lbod;n:Z
intermediary field_6620
Lnet/minecraft/class_1391;field_6620:Z
named canBeScared
Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared:Z
-
-
Constructor Details
-
TemptGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lbod;<init>(Lbgi;DLciz;Z)V
intermediary <init>
Lnet/minecraft/class_1391;<init>(Lnet/minecraft/class_1314;DLnet/minecraft/class_1856;Z)V
named <init>
Lnet/minecraft/entity/ai/goal/TemptGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLnet/minecraft/recipe/Ingredient;Z)V
-
-
Method Details
-
canStart
public boolean canStart() -
isTemptedBy
- Mappings:
Namespace Name Mixin selector official a
Lbod;a(Lbfz;)Z
intermediary method_6312
Lnet/minecraft/class_1391;method_6312(Lnet/minecraft/class_1309;)Z
named isTemptedBy
Lnet/minecraft/entity/ai/goal/TemptGoal;isTemptedBy(Lnet/minecraft/entity/LivingEntity;)Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lbmv;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
canBeScared
protected boolean canBeScared()- Mappings:
Namespace Name Mixin selector official h
Lbod;h()Z
intermediary method_16081
Lnet/minecraft/class_1391;method_16081()Z
named canBeScared
Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector official i
Lbod;i()Z
intermediary method_6313
Lnet/minecraft/class_1391;method_6313()Z
named isActive
Lnet/minecraft/entity/ai/goal/TemptGoal;isActive()Z
-