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.TemptGoal
public class TemptGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private int
calmDown
private boolean
canScare
private boolean
isRunning
private Ingredient
items
protected CreatureEntity
mob
protected PlayerEntity
player
private double
pRotX
private double
pRotY
private double
px
private double
py
private double
pz
private double
speedModifier
private static EntityPredicate
TEMP_TARGETING
-
Constructor Summary
Constructors Constructor Description TemptGoal(CreatureEntity p_i47823_1_, double p_i47823_2_, boolean p_i47823_4_, Ingredient p_i47823_5_)
TemptGoal(CreatureEntity p_i47822_1_, double p_i47822_2_, Ingredient p_i47822_4_, boolean p_i47822_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
protected boolean
canScare()
boolean
canUse()
boolean
isRunning()
protected boolean
shouldFollowItem(ItemStack p_188508_1_)
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
TEMP_TARGETING
private static final EntityPredicate TEMP_TARGETING
-
mob
protected final CreatureEntity mob
-
speedModifier
private final double speedModifier
-
px
private double px
-
py
private double py
-
pz
private double pz
-
pRotX
private double pRotX
-
pRotY
private double pRotY
-
player
protected PlayerEntity player
-
calmDown
private int calmDown
-
isRunning
private boolean isRunning
-
items
private final Ingredient items
-
canScare
private final boolean canScare
-
-
Constructor Detail
-
TemptGoal
public TemptGoal(CreatureEntity p_i47822_1_, double p_i47822_2_, Ingredient p_i47822_4_, boolean p_i47822_5_)
-
TemptGoal
public TemptGoal(CreatureEntity p_i47823_1_, double p_i47823_2_, boolean p_i47823_4_, Ingredient p_i47823_5_)
-
-
Method Detail
-
shouldFollowItem
protected boolean shouldFollowItem(ItemStack p_188508_1_)
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
canScare
protected boolean canScare()
-
isRunning
public boolean isRunning()
-
-