类 EatBlockGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.EatBlockGoal
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明private static final int
private int
private static final Predicate
<BlockState> private final Level
private final Mob
-
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
字段详细资料
-
EAT_ANIMATION_TICKS
private static final int EAT_ANIMATION_TICKS- 另请参阅:
-
IS_EDIBLE
-
mob
-
level
-
eatAnimationTick
private int eatAnimationTick
-
-
构造器详细资料
-
EatBlockGoal
-
-
方法详细资料
-
canUse
public boolean canUse() -
start
public void start() -
stop
public void stop() -
canContinueToUse
public boolean canContinueToUse()- 覆盖:
canContinueToUse
在类中Goal
-
getEatAnimationTick
public int getEatAnimationTick() -
tick
public void tick()
-