类 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
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明protected int
private static final int
protected int
protected int
private final Predicate
<Difficulty> 从类继承的字段 net.minecraft.world.entity.ai.goal.DoorInteractGoal
doorPos, hasDoor, mob
-
构造器概要
构造器构造器说明BreakDoorGoal
(Mob p_25087_, int p_25088_, Predicate<Difficulty> p_25089_) BreakDoorGoal
(Mob p_25091_, Predicate<Difficulty> p_25092_) -
方法概要
修饰符和类型方法说明boolean
boolean
canUse()
protected int
private boolean
isValidDifficulty
(Difficulty p_25095_) void
start()
void
stop()
void
tick()
从类继承的方法 net.minecraft.world.entity.ai.goal.DoorInteractGoal
isOpen, requiresUpdateEveryTick, setOpen
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, toString
-
字段详细资料
-
DEFAULT_DOOR_BREAK_TIME
private static final int DEFAULT_DOOR_BREAK_TIME- 另请参阅:
-
validDifficulties
-
breakTime
protected int breakTime -
lastBreakProgress
protected int lastBreakProgress -
doorBreakTime
protected int doorBreakTime
-
-
构造器详细资料
-
BreakDoorGoal
-
BreakDoorGoal
-
-
方法详细资料
-
getDoorBreakTime
protected int getDoorBreakTime() -
canUse
public boolean canUse()- 覆盖:
canUse
在类中DoorInteractGoal
-
start
public void start()- 覆盖:
start
在类中DoorInteractGoal
-
canContinueToUse
public boolean canContinueToUse()- 覆盖:
canContinueToUse
在类中DoorInteractGoal
-
stop
public void stop() -
tick
public void tick()- 覆盖:
tick
在类中DoorInteractGoal
-
isValidDifficulty
-