Record Class CompoundEasing.RangeAppliedEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.CompoundEasing.RangeAppliedEasing
- Enclosing class:
CompoundEasing
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundEasing.RangeAppliedEasing> static final com.mojang.serialization.Codec<CompoundEasing.RangeAppliedEasing> -
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.
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-