Record Class PivotingKVector
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.kvector.PivotingKVector
- 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 TypeMethodDescriptionReturns the value of theaddedAnglerecord component.distance()Returns the value of thedistancerecord component.net.minecraft.util.EasingTypeease()Returns the value of theeaserecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable net.minecraft.world.phys.Vec3get(KNumberContext ctx) final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.progress()Returns the value of theprogressrecord component.Returns the value of thestartAnglerecord component.target()Returns the value of thetargetrecord 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
-
PivotingKVector
public PivotingKVector(Ref<KNumber> progress, Ref<KVector> target, Ref<KNumber> distance, net.minecraft.util.EasingType ease, Ref<KNumber> startAngle, Ref<KNumber> addedAngle, Ref<KNumber> height) Creates an instance of aPivotingKVectorrecord class.- Parameters:
progress- the value for theprogressrecord componenttarget- the value for thetargetrecord componentdistance- the value for thedistancerecord componentease- the value for theeaserecord componentstartAngle- the value for thestartAnglerecord componentaddedAngle- the value for theaddedAnglerecord componentheight- the value for theheightrecord 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
-
target
-
distance
-
ease
public net.minecraft.util.EasingType ease()Returns the value of theeaserecord component.- Returns:
- the value of the
easerecord component
-
startAngle
-
addedAngle
-
height
-