Class LongJumpToRandomPos<E extends Mob>

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos<E>
All Implemented Interfaces:
BehaviorControl<E>
Direct Known Subclasses:
LongJumpToPreferredBlock

public class LongJumpToRandomPos<E extends Mob> extends Behavior<E>
  • Field Details

    • FIND_JUMP_TRIES

      protected static final int FIND_JUMP_TRIES
      See Also:
    • PREPARE_JUMP_DURATION

      private static final int PREPARE_JUMP_DURATION
      See Also:
    • MIN_PATHFIND_DISTANCE_TO_VALID_JUMP

      protected static final int MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
      See Also:
    • TIME_OUT_DURATION

      private static final int TIME_OUT_DURATION
      See Also:
    • ALLOWED_ANGLES

      private static final List<Integer> ALLOWED_ANGLES
    • timeBetweenLongJumps

      private final UniformInt timeBetweenLongJumps
    • maxLongJumpHeight

      protected final int maxLongJumpHeight
    • maxLongJumpWidth

      protected final int maxLongJumpWidth
    • maxJumpVelocity

      protected final float maxJumpVelocity
    • jumpCandidates

      protected List<LongJumpToRandomPos.PossibleJump> jumpCandidates
    • initialPosition

      protected Optional<Vec3> initialPosition
    • chosenJump

      @Nullable protected Vec3 chosenJump
    • findJumpTries

      protected int findJumpTries
    • prepareJumpStart

      protected long prepareJumpStart
    • getJumpSound

      private final Function<E extends Mob,SoundEvent> getJumpSound
    • acceptableLandingSpot

      private final BiPredicate<E extends Mob,BlockPos> acceptableLandingSpot
  • Constructor Details

  • Method Details