Package net.minecraft.entity.ai.goal
Class BegGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.BegGoal
-
public class BegGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate
begTargeting
private World
level
private float
lookDistance
private int
lookTime
private PlayerEntity
player
private WolfEntity
wolf
-
Constructor Summary
Constructors Constructor Description BegGoal(WolfEntity p_i1617_1_, float p_i1617_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
private boolean
playerHoldingInteresting(PlayerEntity p_75382_1_)
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
wolf
private final WolfEntity wolf
-
player
private PlayerEntity player
-
level
private final World level
-
lookDistance
private final float lookDistance
-
lookTime
private int lookTime
-
begTargeting
private final EntityPredicate begTargeting
-
-
Constructor Detail
-
BegGoal
public BegGoal(WolfEntity p_i1617_1_, float p_i1617_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
playerHoldingInteresting
private boolean playerHoldingInteresting(PlayerEntity p_75382_1_)
-
-