Class LongJumpToRandomPos<E extends Mob>

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.LongJumpToRandomPos<E>

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

    • FIND_JUMP_TRIES

      private 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

      private static final int MIN_PATHFIND_DISTANCE_TO_VALID_JUMP
      See Also:
    • TIME_OUT_DURATION

      public static final int TIME_OUT_DURATION
      See Also:
    • timeBetweenLongJumps

      private final UniformInt timeBetweenLongJumps
    • maxLongJumpHeight

      private final int maxLongJumpHeight
    • maxLongJumpWidth

      private final int maxLongJumpWidth
    • maxJumpVelocity

      private final float maxJumpVelocity
    • jumpCandidates

      private final List<LongJumpToRandomPos.PossibleJump> jumpCandidates
    • initialPosition

      private Optional<Vec3> initialPosition
    • chosenJump

    • findJumpTries

      private int findJumpTries
    • prepareJumpStart

      private long prepareJumpStart
    • getJumpSound

      private Function<E extends Mob,SoundEvent> getJumpSound
  • Constructor Details

    • LongJumpToRandomPos

      public LongJumpToRandomPos(UniformInt p_147637_, int p_147638_, int p_147639_, float p_147640_, Function<E,SoundEvent> p_147641_)
  • Method Details