public class ProgressingLine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
endX |
float |
endY |
float |
endZ |
protected float |
progress |
float |
startX |
float |
startY |
float |
startZ |
| Constructor and Description |
|---|
ProgressingLine() |
ProgressingLine(float startX,
float startY,
float endX,
float endY) |
ProgressingLine(float startX,
float startY,
float startZ,
float endX,
float endY,
float endZ) |
ProgressingLine(ProgressingLine copy) |
ProgressingLine(net.minecraft.util.math.vector.Vector3d start,
net.minecraft.util.math.vector.Vector3d end) |
ProgressingLine(net.minecraft.util.math.vector.Vector3f start,
net.minecraft.util.math.vector.Vector3f end) |
| Modifier and Type | Method and Description |
|---|---|
float |
getProgress() |
boolean |
hasLineSameProperties(double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ) |
boolean |
incProgress(float increment)
Increases the progress by the given amount.
|
boolean |
incProgressByDistance(double distance) |
ProgressingLine |
setProgress(float progress) |
public float startX
public float startY
public float startZ
public float endX
public float endY
public float endZ
protected float progress
public ProgressingLine()
public ProgressingLine(net.minecraft.util.math.vector.Vector3f start,
net.minecraft.util.math.vector.Vector3f end)
public ProgressingLine(net.minecraft.util.math.vector.Vector3d start,
net.minecraft.util.math.vector.Vector3d end)
public ProgressingLine(float startX,
float startY,
float startZ,
float endX,
float endY,
float endZ)
public ProgressingLine(float startX,
float startY,
float endX,
float endY)
public ProgressingLine(ProgressingLine copy)
public boolean hasLineSameProperties(double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ)
public float getProgress()
public ProgressingLine setProgress(float progress)
public boolean incProgress(float increment)
increment - public boolean incProgressByDistance(double distance)