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 named net/minecraft/entity/ai/goal/TemptGoal
intermediary net/minecraft/class_1391
official cel
-
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 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, Predicate<ItemStack> foodPredicate, 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, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
TEMPTING_ENTITY_PREDICATE
- Mappings:
Namespace Name Mixin selector named TEMPTING_ENTITY_PREDICATE
Lnet/minecraft/entity/ai/goal/TemptGoal;TEMPTING_ENTITY_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18090
Lnet/minecraft/class_1391;field_18090:Lnet/minecraft/class_4051;
official c
Lcel;c:Lcgw;
-
predicate
- Mappings:
Namespace Name Mixin selector named predicate
Lnet/minecraft/entity/ai/goal/TemptGoal;predicate:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_28404
Lnet/minecraft/class_1391;field_28404:Lnet/minecraft/class_4051;
official d
Lcel;d:Lcgw;
-
mob
- Mappings:
Namespace Name Mixin selector named mob
Lnet/minecraft/entity/ai/goal/TemptGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
intermediary field_6616
Lnet/minecraft/class_1391;field_6616:Lnet/minecraft/class_1314;
official a
Lcel;a:Lbwn;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/goal/TemptGoal;speed:D
intermediary field_6615
Lnet/minecraft/class_1391;field_6615:D
official e
Lcel;e:D
-
lastPlayerX
private double lastPlayerX- Mappings:
Namespace Name Mixin selector named lastPlayerX
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerX:D
intermediary field_6614
Lnet/minecraft/class_1391;field_6614:D
official f
Lcel;f:D
-
lastPlayerY
private double lastPlayerY- Mappings:
Namespace Name Mixin selector named lastPlayerY
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerY:D
intermediary field_6611
Lnet/minecraft/class_1391;field_6611:D
official g
Lcel;g:D
-
lastPlayerZ
private double lastPlayerZ- Mappings:
Namespace Name Mixin selector named lastPlayerZ
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerZ:D
intermediary field_6621
Lnet/minecraft/class_1391;field_6621:D
official h
Lcel;h:D
-
lastPlayerPitch
private double lastPlayerPitch- Mappings:
Namespace Name Mixin selector named lastPlayerPitch
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerPitch:D
intermediary field_6619
Lnet/minecraft/class_1391;field_6619:D
official i
Lcel;i:D
-
lastPlayerYaw
private double lastPlayerYaw- Mappings:
Namespace Name Mixin selector named lastPlayerYaw
Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerYaw:D
intermediary field_6618
Lnet/minecraft/class_1391;field_6618:D
official j
Lcel;j:D
-
closestPlayer
- Mappings:
Namespace Name Mixin selector named closestPlayer
Lnet/minecraft/entity/ai/goal/TemptGoal;closestPlayer:Lnet/minecraft/entity/player/PlayerEntity;
intermediary field_6617
Lnet/minecraft/class_1391;field_6617:Lnet/minecraft/class_1657;
official b
Lcel;b:Lcpw;
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector named cooldown
Lnet/minecraft/entity/ai/goal/TemptGoal;cooldown:I
intermediary field_6612
Lnet/minecraft/class_1391;field_6612:I
official k
Lcel;k:I
-
active
private boolean active- Mappings:
Namespace Name Mixin selector named active
Lnet/minecraft/entity/ai/goal/TemptGoal;active:Z
intermediary field_6613
Lnet/minecraft/class_1391;field_6613:Z
official l
Lcel;l:Z
-
foodPredicate
- Mappings:
Namespace Name Mixin selector named foodPredicate
Lnet/minecraft/entity/ai/goal/TemptGoal;foodPredicate:Ljava/util/function/Predicate;
intermediary field_6622
Lnet/minecraft/class_1391;field_6622:Ljava/util/function/Predicate;
official m
Lcel;m:Ljava/util/function/Predicate;
-
canBeScared
private final boolean canBeScared- Mappings:
Namespace Name Mixin selector named canBeScared
Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared:Z
intermediary field_6620
Lnet/minecraft/class_1391;field_6620:Z
official n
Lcel;n:Z
-
-
Constructor Details
-
TemptGoal
public TemptGoal(PathAwareEntity entity, double speed, Predicate<ItemStack> foodPredicate, boolean canBeScared) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/TemptGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLjava/util/function/Predicate;Z)V
intermediary <init>
Lnet/minecraft/class_1391;<init>(Lnet/minecraft/class_1314;DLjava/util/function/Predicate;Z)V
official <init>
Lcel;<init>(Lbwn;DLjava/util/function/Predicate;Z)V
-
-
Method Details
-
canStart
public boolean canStart() -
isTemptedBy
- Mappings:
Namespace Name Mixin selector named isTemptedBy
Lnet/minecraft/entity/ai/goal/TemptGoal;isTemptedBy(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_6312
Lnet/minecraft/class_1391;method_6312(Lnet/minecraft/class_1309;)Z
official a
Lcel;a(Lbwf;)Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- 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
Lcdd;c()Z
-
canBeScared
protected boolean canBeScared()- Mappings:
Namespace Name Mixin selector named canBeScared
Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared()Z
intermediary method_16081
Lnet/minecraft/class_1391;method_16081()Z
official h
Lcel;h()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector named isActive
Lnet/minecraft/entity/ai/goal/TemptGoal;isActive()Z
intermediary method_6313
Lnet/minecraft/class_1391;method_6313()Z
official i
Lcel;i()Z
-