Class ProgressingLine
java.lang.Object
me.desht.pneumaticcraft.client.util.ProgressingLine
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProgressingLine(float startX, float startY, float endX, float endY) ProgressingLine(float startX, float startY, float startZ, float endX, float endY, float endZ) ProgressingLine(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) ProgressingLine(org.joml.Vector3f start, org.joml.Vector3f end) -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanincProgress(float increment) Increases the progress by the given amount.booleanincProgressByDistance(double distance) setProgress(float progress)
-
Field Details
-
startX
public float startX -
startY
public float startY -
startZ
public float startZ -
endX
public float endX -
endY
public float endY -
endZ
public float endZ -
progress
protected float progress
-
-
Constructor Details
-
ProgressingLine
public ProgressingLine() -
ProgressingLine
public ProgressingLine(org.joml.Vector3f start, org.joml.Vector3f end) -
ProgressingLine
public ProgressingLine(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) -
ProgressingLine
public ProgressingLine(float startX, float startY, float startZ, float endX, float endY, float endZ) -
ProgressingLine
public ProgressingLine(float startX, float startY, float endX, float endY)
-
-
Method Details
-
getProgress
public float getProgress() -
setProgress
-
incProgress
public boolean incProgress(float increment) Increases the progress by the given amount.- Parameters:
increment-- Returns:
- Returns true when the maximum progress has been reached.
-
incProgressByDistance
public boolean incProgressByDistance(double distance)
-