Record Class CustomModelData1_21_4
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.item.data.CustomModelData1_21_4
- All Implemented Interfaces:
Copyable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomModelData1_21_4(float[] floats, boolean[] booleans, String[] strings, int[] colors) Creates an instance of aCustomModelData1_21_4record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]booleans()Returns the value of thebooleansrecord component.int[]colors()Returns the value of thecolorsrecord component.copy()final booleanIndicates whether some other object is "equal to" this one.float[]floats()Returns the value of thefloatsrecord component.final inthashCode()Returns a hash code value for this object.String[]strings()Returns the value of thestringsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
CustomModelData1_21_4
Creates an instance of aCustomModelData1_21_4record class.- Parameters:
floats- the value for thefloatsrecord componentbooleans- the value for thebooleansrecord componentstrings- the value for thestringsrecord componentcolors- the value for thecolorsrecord component
-
-
Method Details
-
copy
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
floats
public float[] floats()Returns the value of thefloatsrecord component.- Returns:
- the value of the
floatsrecord component
-
booleans
public boolean[] booleans()Returns the value of thebooleansrecord component.- Returns:
- the value of the
booleansrecord component
-
strings
Returns the value of thestringsrecord component.- Returns:
- the value of the
stringsrecord component
-
colors
public int[] colors()Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-