Record Class CustomModelData
java.lang.Object
java.lang.Record
net.minestom.server.item.component.CustomModelData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec
<CustomModelData> static final NetworkBuffer.Type
<CustomModelData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolors()
Returns the value of thecolors
record component.final boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.floats()
Returns the value of thefloats
record component.final int
hashCode()
Returns a hash code value for this object.strings()
Returns the value of thestrings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
CustomModelData
public CustomModelData(@NotNull @NotNull List<Float> floats, @NotNull @NotNull List<Boolean> flags, @NotNull @NotNull List<String> strings, @NotNull @NotNull List<RGBLike> colors) Creates an instance of aCustomModelData
record class.- Parameters:
floats
- the value for thefloats
record componentflags
- the value for theflags
record componentstrings
- the value for thestrings
record componentcolors
- the value for thecolors
record component
-
-
Method Details
-
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)
. -
floats
-
flags
-
strings
-
colors
-