Package net.minecraft.entity.passive
Class TurtleEntity.PlayerTemptGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.passive.TurtleEntity.PlayerTemptGoal
-
- Enclosing class:
- TurtleEntity
static class TurtleEntity.PlayerTemptGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private int
calmDown
private java.util.Set<Item>
items
private PlayerEntity
player
private double
speedModifier
private static EntityPredicate
TEMPT_TARGETING
private TurtleEntity
turtle
-
Constructor Summary
Constructors Constructor Description PlayerTemptGoal(TurtleEntity p_i48812_1_, double p_i48812_2_, Item p_i48812_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
private boolean
shouldFollowItem(ItemStack p_203131_1_)
void
stop()
void
tick()
-
-
-
Field Detail
-
TEMPT_TARGETING
private static final EntityPredicate TEMPT_TARGETING
-
turtle
private final TurtleEntity turtle
-
speedModifier
private final double speedModifier
-
player
private PlayerEntity player
-
calmDown
private int calmDown
-
items
private final java.util.Set<Item> items
-
-
Constructor Detail
-
PlayerTemptGoal
PlayerTemptGoal(TurtleEntity p_i48812_1_, double p_i48812_2_, Item p_i48812_4_)
-
-
Method Detail
-
shouldFollowItem
private boolean shouldFollowItem(ItemStack p_203131_1_)
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-