java.lang.Object
com.simibubi.create.foundation.utility.animation.LerpedFloat

public class LerpedFloat extends Object
  • Field Details

    • interpolator

      protected LerpedFloat.Interpolator interpolator
    • previousValue

      protected float previousValue
    • value

      protected float value
    • chaseFunction

      protected LerpedFloat.Chaser chaseFunction
    • chaseTarget

      protected float chaseTarget
    • chaseSpeed

      protected float chaseSpeed
    • angularChase

      protected boolean angularChase
    • forcedSync

      protected boolean forcedSync
  • Constructor Details

  • Method Details

    • linear

      public static LerpedFloat linear()
    • angular

      public static LerpedFloat angular()
    • startWithValue

      public LerpedFloat startWithValue(double value)
    • chase

      public LerpedFloat chase(double value, double speed, LerpedFloat.Chaser chaseFunction)
    • disableSmartAngleChasing

      public LerpedFloat 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)