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 intcalmDownprivate booleancanScareprivate booleanisRunningprivate Ingredientitemsprotected CreatureEntitymobprotected PlayerEntityplayerprivate doublepRotXprivate doublepRotYprivate doublepxprivate doublepyprivate doublepzprivate doublespeedModifierprivate static EntityPredicateTEMP_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 booleancanContinueToUse()protected booleancanScare()booleancanUse()booleanisRunning()protected booleanshouldFollowItem(ItemStack p_188508_1_)voidstart()voidstop()voidtick()-
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:
canContinueToUsein classGoal
-
canScare
protected boolean canScare()
-
isRunning
public boolean isRunning()
-
-