Record Class WrappedEasingType
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.interpolation.WrappedEasingType
- All Implemented Interfaces:
net.minecraft.util.EasingType
public record WrappedEasingType(Ref<Interpolation> ref)
extends Record
implements net.minecraft.util.EasingType
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.EasingType
net.minecraft.util.EasingType.CubicBezier, net.minecraft.util.EasingType.CubicBezierControls -
Field Summary
Fields inherited from interface net.minecraft.util.EasingType
CODEC, CONSTANT, IN_BACK, IN_BOUNCE, IN_CIRC, IN_CUBIC, IN_ELASTIC, IN_EXPO, IN_OUT_BACK, IN_OUT_BOUNCE, IN_OUT_CIRC, IN_OUT_CUBIC, IN_OUT_ELASTIC, IN_OUT_EXPO, IN_OUT_QUAD, IN_OUT_QUART, IN_OUT_QUINT, IN_OUT_SINE, IN_QUAD, IN_QUART, IN_QUINT, IN_SINE, LINEAR, OUT_BACK, OUT_BOUNCE, OUT_CIRC, OUT_CUBIC, OUT_ELASTIC, OUT_EXPO, OUT_QUAD, OUT_QUART, OUT_QUINT, OUT_SINE, SIMPLE_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aWrappedEasingTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(float x) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.static com.mojang.serialization.Codec<net.minecraft.util.EasingType> wrap(com.mojang.serialization.Codec<net.minecraft.util.EasingType> original)
-
Constructor Details
-
WrappedEasingType
Creates an instance of aWrappedEasingTyperecord class.- Parameters:
ref- the value for therefrecord component
-
-
Method Details
-
wrap
public static com.mojang.serialization.Codec<net.minecraft.util.EasingType> wrap(com.mojang.serialization.Codec<net.minecraft.util.EasingType> original) -
apply
public float apply(float x) - Specified by:
applyin interfacenet.minecraft.util.EasingType
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-