Class LerpedFloat
java.lang.Object
com.simibubi.create.foundation.utility.animation.LerpedFloat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected LerpedFloat.Chaserprotected floatprotected floatprotected booleanprotected LerpedFloat.Interpolatorprotected floatprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LerpedFloatangular()chase(double value, double speed, LerpedFloat.Chaser chaseFunction) voidfloatfloatgetValue()floatgetValue(float partialTicks) static LerpedFloatlinear()protected voidreadChaser(net.minecraft.nbt.CompoundTag compoundNBT) voidreadNBT(net.minecraft.nbt.CompoundTag compoundNBT, boolean clientPacket) booleansettled()voidsetValue(double value) voidsetValueNoUpdate(double value) startWithValue(double value) voidbooleanupdateChaseSpeed(double speed) voidupdateChaseTarget(float target) net.minecraft.nbt.CompoundTagwriteNBT()
-
Field Details
-
interpolator
-
previousValue
protected float previousValue -
value
protected float value -
chaseFunction
-
chaseTarget
protected float chaseTarget -
chaseSpeed
protected float chaseSpeed -
angularChase
protected boolean angularChase -
forcedSync
protected boolean forcedSync
-
-
Constructor Details
-
LerpedFloat
-
-
Method Details
-
linear
-
angular
-
startWithValue
-
chase
-
disableSmartAngleChasing
-
updateChaseTarget
public void updateChaseTarget(float target) -
updateChaseSpeed
public boolean updateChaseSpeed(double speed) -
tickChaser
public void tickChaser() -
setValueNoUpdate
public void setValueNoUpdate(double value) -
setValue
public void setValue(double value) -
getValue
public float getValue() -
getValue
public float getValue(float partialTicks) -
settled
public boolean settled() -
getChaseTarget
public float getChaseTarget() -
forceNextSync
public void forceNextSync() -
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT() -
readNBT
public void readNBT(net.minecraft.nbt.CompoundTag compoundNBT, boolean clientPacket) -
readChaser
protected void readChaser(net.minecraft.nbt.CompoundTag compoundNBT)
-