Class EntityJump
java.lang.Object
net.rodofire.easierworldcreator.entity.trajectory.EntityJump
based on equations given by Minecraft Parkour Wiki:
licensed under CC BY-SA 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionEntityJump(net.minecraft.util.math.BlockPos startPos, net.minecraft.util.math.BlockPos endPos, float overshoot) init the class -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.math.Vec3dintvoidsetEndPos(net.minecraft.util.math.BlockPos endPos)
-
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 jumpendPos- the BlockPos at which the entity should finishovershoot- 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()
-