Package net.minecraft.entity.ai.goal
Class BreakDoorGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.InteractDoorGoal
net.minecraft.entity.ai.goal.BreakDoorGoal
- Direct Known Subclasses:
VindicatorEntity.BreakDoorGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
private final Predicate<Difficulty>
Fields inherited from class net.minecraft.entity.ai.goal.InteractDoorGoal
doorPos, hasDoor, mob
-
Constructor Summary
ConstructorDescriptionBreakDoorGoal
(MobEntity p_i50333_1_, int p_i50333_2_, Predicate<Difficulty> p_i50333_3_) BreakDoorGoal
(MobEntity p_i50332_1_, Predicate<Difficulty> p_i50332_2_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected int
private boolean
isValidDifficulty
(Difficulty p_220696_1_) void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.InteractDoorGoal
isOpen, setOpen
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
validDifficulties
-
breakTime
protected int breakTime -
lastBreakProgress
protected int lastBreakProgress -
doorBreakTime
protected int doorBreakTime
-
-
Constructor Details
-
BreakDoorGoal
-
BreakDoorGoal
-
-
Method Details
-
getDoorBreakTime
protected int getDoorBreakTime() -
canUse
public boolean canUse()- Overrides:
canUse
in classInteractDoorGoal
-
start
public void start()- Overrides:
start
in classInteractDoorGoal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classInteractDoorGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classInteractDoorGoal
-
isValidDifficulty
-