Class EntityJump

java.lang.Object
fr.rodofire.ewc.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.core.BlockPos startPos, net.minecraft.core.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.core.BlockPos endPos)
    • getTotalTime

      public int getTotalTime()
    • calculateInitialJump

      public net.minecraft.world.phys.Vec3 calculateInitialJump()