Class BreakDoorGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.DoorInteractGoal
net.minecraft.world.entity.ai.goal.BreakDoorGoal
- Direct Known Subclasses:
Vindicator.VindicatorBreakDoorGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
private static final int
protected int
protected int
private final Predicate<Difficulty>
Fields inherited from class net.minecraft.world.entity.ai.goal.DoorInteractGoal
doorPos, hasDoor, mob
-
Constructor Summary
ConstructorDescriptionBreakDoorGoal
(Mob p_25087_, int p_25088_, Predicate<Difficulty> p_25089_) BreakDoorGoal
(Mob p_25091_, Predicate<Difficulty> p_25092_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected int
private boolean
isValidDifficulty
(Difficulty p_25095_) void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.goal.DoorInteractGoal
isOpen, requiresUpdateEveryTick, setOpen
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Field Details
-
DEFAULT_DOOR_BREAK_TIME
private static final int DEFAULT_DOOR_BREAK_TIME- See Also:
-
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 classDoorInteractGoal
-
start
public void start()- Overrides:
start
in classDoorInteractGoal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classDoorInteractGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classDoorInteractGoal
-
isValidDifficulty
-