Record Class InterpolatedKVector
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.kvector.InterpolatedKVector
- All Implemented Interfaces:
KVector, CustomRegistryOwnTypeProvider<net.minecraft.network.RegistryFriendlyByteBuf, KVector>, CustomRegistryValue<net.minecraft.network.RegistryFriendlyByteBuf, KVector>, RefOptimizer<KVector>, WithKey, WithRef<KVector>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicType<net.minecraft.network.RegistryFriendlyByteBuf, KVector> Fields inherited from interface KVector
CODEC, DATA_TYPE, ERROR_NOT_A_NUMBER, ERROR_NOT_A_VECTOR, ONE, ORIGIN, PREFIX_LIST, REGISTRY, SOURCE, STREAM_CODEC, TARGET, ZEROFields inherited from interface WithKey
COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.EasingTypeease()Returns the value of theeaserecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.@Nullable net.minecraft.world.phys.Vec3get(KNumberContext ctx) final inthashCode()Returns a hash code value for this object.progress()Returns the value of theprogressrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.DynamicType<net.minecraft.network.RegistryFriendlyByteBuf, KVector> type()Methods inherited from interface CustomRegistryValue
optionalKey, refMethods inherited from interface KVector
getRegistry, isStringLiteral, offset, scaleMethods inherited from interface RefOptimizer
optimize
-
Field Details
-
TYPE
-
-
Constructor Details
-
InterpolatedKVector
public InterpolatedKVector(Ref<KNumber> progress, net.minecraft.util.EasingType ease, Ref<KVector> from, Ref<KVector> to) Creates an instance of aInterpolatedKVectorrecord class.- Parameters:
progress- the value for theprogressrecord componentease- the value for theeaserecord componentfrom- the value for thefromrecord componentto- the value for thetorecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceCustomRegistryOwnTypeProvider<net.minecraft.network.RegistryFriendlyByteBuf, KVector>
-
get
-
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). -
progress
-
ease
public net.minecraft.util.EasingType ease()Returns the value of theeaserecord component.- Returns:
- the value of the
easerecord component
-
from
-
to
-