Record Class CompoundEasing.RangeAppliedEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.CompoundEasing.RangeAppliedEasing
- Enclosing class:
CompoundEasing
-
Constructor Summary
ConstructorsConstructorDescriptionRangeAppliedEasing(double minValue, double maxValue, Easing easing) Creates an instance of aRangeAppliedEasingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneasing()Returns the value of theeasingrecord component.final booleanIndicates whether some other object is "equal to" this one.fromJSON(com.google.gson.JsonElement json) fromJSON(com.google.gson.JsonElement json, LoadResolver<Easing> context) fromNetwork(net.minecraft.network.FriendlyByteBuf buf) doubleget(double t) final inthashCode()Returns a hash code value for this object.doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RangeAppliedEasing
Creates an instance of aRangeAppliedEasingrecord class.- Parameters:
minValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord componenteasing- the value for theeasingrecord component
-
-
Method Details
-
get
public double get(double t) -
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf buf) -
fromNetwork
public static CompoundEasing.RangeAppliedEasing fromNetwork(net.minecraft.network.FriendlyByteBuf buf) -
fromJSON
-
fromJSON
public static CompoundEasing.RangeAppliedEasing fromJSON(com.google.gson.JsonElement json, LoadResolver<Easing> context) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
minValue
public double minValue()Returns the value of theminValuerecord component.- Returns:
- the value of the
minValuerecord component
-
maxValue
public double maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-