Package net.minecraft.entity.ai.goal
Class WolfBegGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WolfBegGoal
public class WolfBegGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private float
begDistance
private PlayerEntity
begFrom
private int
timer
private TargetPredicate
validPlayerPredicate
private WolfEntity
wolf
private World
world
-
Constructor Summary
Constructors Constructor Description WolfBegGoal(WolfEntity wolf, float begDistance)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private boolean
isAttractive(PlayerEntity player)
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
wolf
-
begFrom
-
world
-
begDistance
private final float begDistance -
timer
private int timer -
validPlayerPredicate
-
-
Constructor Details
-
WolfBegGoal
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
isAttractive
-