java.lang.Object
net.rodofire.easierworldcreator.entity.trajectory.EntityJump

public class EntityJump extends Object
based on equations given by Minecraft Parkour Wiki:

horizontal-movement

vertical-movement

licensed under CC BY-SA 4.0

  • Constructor Details

    • EntityJump

      public EntityJump(net.minecraft.util.math.BlockPos startPos, net.minecraft.util.math.BlockPos endPos, float overshoot)
      init the class
      Parameters:
      startPos - the BlockPos at which the entity will start the jump
      endPos - the BlockPos at which the entity should finish
      overshoot - the maximum height at which the entity can go above the highest point between startPos and endPos
  • Method Details

    • setEndPos

      public void setEndPos(net.minecraft.util.math.BlockPos endPos)
    • getTotalTime

      public int getTotalTime()
    • calculateInitialJump

      public net.minecraft.util.math.Vec3d calculateInitialJump()