public class LerpedFloat
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LerpedFloat.Chaser |
static interface |
LerpedFloat.Interpolater |
| Constructor and Description |
|---|
LerpedFloat(LerpedFloat.Interpolater interpolater) |
| Modifier and Type | Method and Description |
|---|---|
static LerpedFloat |
angular() |
LerpedFloat |
chase(double value,
double speed,
LerpedFloat.Chaser chaseFunction) |
void |
forceNextSync() |
float |
getChaseTarget() |
float |
getValue() |
float |
getValue(float partialTicks) |
static LerpedFloat |
linear() |
void |
readNBT(net.minecraft.nbt.CompoundNBT compoundNBT,
boolean clientPacket) |
boolean |
settled() |
void |
setValue(double value) |
LerpedFloat |
startWithValue(double value) |
void |
tickChaser() |
boolean |
updateChaseSpeed(double speed) |
void |
updateChaseTarget(float target) |
net.minecraft.nbt.CompoundNBT |
writeNBT() |
public LerpedFloat(LerpedFloat.Interpolater interpolater)
public static LerpedFloat linear()
public static LerpedFloat angular()
public LerpedFloat startWithValue(double value)
public LerpedFloat chase(double value, double speed, LerpedFloat.Chaser chaseFunction)
public void updateChaseTarget(float target)
public boolean updateChaseSpeed(double speed)
public void tickChaser()
public void setValue(double value)
public float getValue()
public float getValue(float partialTicks)
public boolean settled()
public float getChaseTarget()
public void forceNextSync()
public net.minecraft.nbt.CompoundNBT writeNBT()
public void readNBT(net.minecraft.nbt.CompoundNBT compoundNBT,
boolean clientPacket)