Class EntityJump
java.lang.Object
fr.rodofire.ewc.entity.trajectory.EntityJump
based on equations given by Minecraft Parkour Wiki:
licensed under CC BY-SA 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionEntityJump(net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, float overshoot) init the class -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3intvoidsetEndPos(net.minecraft.core.BlockPos endPos)
-
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 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.core.BlockPos endPos) -
getTotalTime
public int getTotalTime() -
calculateInitialJump
public net.minecraft.world.phys.Vec3 calculateInitialJump()
-