Package net.minecraft.entity.ai.goal
Class BreakDoorGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DoorInteractGoal
net.minecraft.entity.ai.goal.BreakDoorGoal
- Direct Known Subclasses:
VindicatorEntity.BreakDoorGoal
public class BreakDoorGoal extends DoorInteractGoal
-
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 protected intbreakProgressprivate Predicate<Difficulty>difficultySufficientPredicateprotected intmaxProgressprotected intprevBreakProgressFields inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
doorPos, doorValid, mob -
Constructor Summary
Constructors Constructor Description BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate)BreakDoorGoal(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate) -
Method Summary
Modifier and Type Method Description booleancanStart()protected intgetMaxProgress()private booleanisDifficultySufficient(Difficulty difficulty)booleanshouldContinue()voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.DoorInteractGoal
isDoorOpen, setDoorOpenMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
difficultySufficientPredicate
-
breakProgress
protected int breakProgress -
prevBreakProgress
protected int prevBreakProgress -
maxProgress
protected int maxProgress
-
-
Constructor Details
-
BreakDoorGoal
-
BreakDoorGoal
public BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate)
-
-
Method Details
-
getMaxProgress
protected int getMaxProgress() -
canStart
public boolean canStart()- Overrides:
canStartin classDoorInteractGoal
-
start
public void start()- Overrides:
startin classDoorInteractGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classDoorInteractGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tickin classDoorInteractGoal
-
isDifficultySufficient
-