类 LongJumpToRandomPos<E extends Mob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos<E>
- 所有已实现的接口:
BehaviorControl<E>
- 直接已知子类:
LongJumpToPreferredBlock
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private final BiPredicate<E,
BlockPos> protected Vec3
protected static final int
protected int
private final Function<E,
SoundEvent> protected List<LongJumpToRandomPos.PossibleJump>
protected final float
protected final int
protected final int
protected static final int
private static final int
protected long
private static final int
private final UniformInt
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明LongJumpToRandomPos
(UniformInt pTimeBetweenLongJumps, int pMaxLongJumpHeight, int pMaxLongJumpWidth, float pMaxJumpVelocity, Function<E, SoundEvent> pGetJumpSound) LongJumpToRandomPos
(UniformInt pTimeBetweenLongJumps, int pMaxLongJumpHeight, int pMaxLongJumpWidth, float pMaxJumpVelocity, Function<E, SoundEvent> pGetJumpSound, BiPredicate<E, BlockPos> pAcceptableLandingSpot) -
方法概要
修饰符和类型方法说明private Vec3
calculateJumpVectorForAngle
(Mob pMob, Vec3 pTarget, int pAngle) protected Vec3
calculateOptimalJumpVector
(Mob pMob, Vec3 pTarget) protected boolean
canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, Mob pOwner) static <E extends Mob>
booleandefaultAcceptableLandingSpot
(E p_251540_, BlockPos p_248879_) protected Optional<LongJumpToRandomPos.PossibleJump>
getJumpCandidate
(ServerLevel pLevel) private boolean
isAcceptableLandingPosition
(ServerLevel pLevel, E pEntity, BlockPos pPos) private boolean
isClearTransition
(Mob pMob, EntityDimensions pDimensions, Vec3 pStart, Vec3 pEnd) protected void
pickCandidate
(ServerLevel pLevel, E pEntity, long pPrepareJumpStart) protected void
start
(ServerLevel pLevel, E pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, E pOwner, long pGameTime) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
-
字段详细资料
-
FIND_JUMP_TRIES
protected static final int FIND_JUMP_TRIES- 另请参阅:
-
PREPARE_JUMP_DURATION
private static final int PREPARE_JUMP_DURATION- 另请参阅:
-
MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
protected static final int MIN_PATHFIND_DISTANCE_TO_VALID_JUMP- 另请参阅:
-
TIME_OUT_DURATION
private static final int TIME_OUT_DURATION- 另请参阅:
-
ALLOWED_ANGLES
-
timeBetweenLongJumps
-
maxLongJumpHeight
protected final int maxLongJumpHeight -
maxLongJumpWidth
protected final int maxLongJumpWidth -
maxJumpVelocity
protected final float maxJumpVelocity -
jumpCandidates
-
initialPosition
-
chosenJump
-
findJumpTries
protected int findJumpTries -
prepareJumpStart
protected long prepareJumpStart -
getJumpSound
-
acceptableLandingSpot
-
-
构造器详细资料
-
LongJumpToRandomPos
public LongJumpToRandomPos(UniformInt pTimeBetweenLongJumps, int pMaxLongJumpHeight, int pMaxLongJumpWidth, float pMaxJumpVelocity, Function<E, SoundEvent> pGetJumpSound) -
LongJumpToRandomPos
public LongJumpToRandomPos(UniformInt pTimeBetweenLongJumps, int pMaxLongJumpHeight, int pMaxLongJumpWidth, float pMaxJumpVelocity, Function<E, SoundEvent> pGetJumpSound, BiPredicate<E, BlockPos> pAcceptableLandingSpot)
-
-
方法详细资料
-
defaultAcceptableLandingSpot
-
checkExtraStartConditions
- 覆盖:
checkExtraStartConditions
在类中Behavior<E extends Mob>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<E extends Mob>
-
start
-
tick
-
pickCandidate
-
getJumpCandidate
-
isAcceptableLandingPosition
-
calculateOptimalJumpVector
-
calculateJumpVectorForAngle
-
isClearTransition
-