类 AnimalPanic<E extends PathfinderMob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.AnimalPanic<E>
- 所有已实现的接口:
BehaviorControl<E>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private static final int
private static final int
private final Function
<PathfinderMob, TagKey<DamageType>> private final float
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明AnimalPanic
(float p_147385_) AnimalPanic
(float p_416201_, int p_416512_) AnimalPanic
(float p_275357_, Function<PathfinderMob, TagKey<DamageType>> p_350957_) AnimalPanic
(float p_415539_, Function<PathfinderMob, TagKey<DamageType>> p_415969_, Function<E, Vec3> p_415777_) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel p_147391_, E p_147392_, long p_147393_) protected boolean
checkExtraStartConditions
(ServerLevel p_275286_, E p_275721_) private Vec3
getPanicPos
(E p_196639_, ServerLevel p_196640_) lookForWater
(BlockGetter p_196642_, Entity p_196643_) protected void
start
(ServerLevel p_147399_, E p_147400_, long p_147401_) protected void
stop
(ServerLevel p_217118_, E p_217119_, long p_217120_) protected void
tick
(ServerLevel p_147403_, E p_147404_, long p_147405_) 从类继承的方法 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- 另请参阅:
-
speedMultiplier
private final float speedMultiplier -
panicCausingDamageTypes
-
positionGetter
-
-
构造器详细资料
-
AnimalPanic
public AnimalPanic(float p_147385_) -
AnimalPanic
public AnimalPanic(float p_416201_, int p_416512_) -
AnimalPanic
-
AnimalPanic
public AnimalPanic(float p_415539_, Function<PathfinderMob, TagKey<DamageType>> p_415969_, Function<E, Vec3> p_415777_)
-
-
方法详细资料
-
checkExtraStartConditions
- 覆盖:
checkExtraStartConditions
在类中Behavior<E extends PathfinderMob>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<E extends PathfinderMob>
-
start
- 覆盖:
start
在类中Behavior<E extends PathfinderMob>
-
stop
- 覆盖:
stop
在类中Behavior<E extends PathfinderMob>
-
tick
- 覆盖:
tick
在类中Behavior<E extends PathfinderMob>
-
getPanicPos
-
lookForWater
-