Record Class KNumberVariables
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.knumber.KNumberVariables
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<KNumberVariables> static final KNumberVariablesstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, KNumberVariables> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aKNumberVariablesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()merge(KNumberVariables other) static KNumberVariablesnumbers()Returns the value of thenumbersrecord component.voidreplace(KNumberVariables variables) final StringtoString()Returns a string representation of this record class.static KNumberVariablesvectors()Returns the value of thevectorsrecord component.
-
Field Details
-
EMPTY
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, KNumberVariables> STREAM_CODEC
-
-
Constructor Details
-
KNumberVariables
public KNumberVariables() -
KNumberVariables
-
-
Method Details
-
vec
-
num
-
merge
-
replace
-
isEmpty
public boolean isEmpty() -
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). -
numbers
-
vectors
-