Class ClampEasing

java.lang.Object
net.thewinnt.cutscenes.easing.types.ClampEasing
All Implemented Interfaces:
Easing

public class ClampEasing extends Object implements Easing
  • Field Details

    • input

      public final Easing input
    • min

      public final Easing min
    • max

      public final Easing max
  • Constructor Details

  • Method Details

    • get

      public double get(double t)
      Description copied from interface: Easing
      Returns the eased value from given t
      Specified by:
      get in interface Easing
      Parameters:
      t - the initial progress (linear)
      Returns:
      the eased value
    • toNetwork

      public void toNetwork(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      toNetwork in interface Easing
    • getSerializer

      public EasingSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface Easing
      Returns:
      a serializer that creates easings of this type