Class SimpleEasing

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

public class SimpleEasing extends Object implements Easing
  • Field Details

  • 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
    • getSerializer

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

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