类 AnimalPanic
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.AnimalPanic
- 所有已实现的接口:
BehaviorControl<PathfinderMob>
- 直接已知子类:
CamelAi.CamelPanic
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private static final Predicate<PathfinderMob>
private static final int
private static final int
private static final int
private static final int
private final Predicate<PathfinderMob>
private final float
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明AnimalPanic
(float pSpeedMultiplier) AnimalPanic
(float pSpeedMultiplier, Predicate<PathfinderMob> pShouldPanic) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, PathfinderMob pOwner) private Vec3
getPanicPos
(PathfinderMob pPathfinder, ServerLevel pLevel) lookForWater
(BlockGetter pLevel, Entity pEntity) protected void
start
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected void
stop
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, PathfinderMob pOwner, long pGameTime) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
字段详细资料
-
PANIC_MIN_DURATION
private static final int PANIC_MIN_DURATION- 另请参阅:
-
PANIC_MAX_DURATION
private static final int PANIC_MAX_DURATION- 另请参阅:
-
PANIC_DISTANCE_HORIZONTAL
private static final int PANIC_DISTANCE_HORIZONTAL- 另请参阅:
-
PANIC_DISTANCE_VERTICAL
private static final int PANIC_DISTANCE_VERTICAL- 另请参阅:
-
DEFAULT_SHOULD_PANIC_PREDICATE
-
speedMultiplier
private final float speedMultiplier -
shouldPanic
-
-
构造器详细资料
-
AnimalPanic
public AnimalPanic(float pSpeedMultiplier) -
AnimalPanic
-
-
方法详细资料
-
checkExtraStartConditions
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<PathfinderMob>
-
start
- 覆盖:
start
在类中Behavior<PathfinderMob>
-
stop
- 覆盖:
stop
在类中Behavior<PathfinderMob>
-
tick
- 覆盖:
tick
在类中Behavior<PathfinderMob>
-
getPanicPos
-
lookForWater
-