Record Class MtlParser.MtlMaterial
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.objimport.MtlParser.MtlMaterial
- Enclosing class:
MtlParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMtlMaterial(String name, float[] diffuseColor, String diffuseTexturePath) Creates an instance of aMtlMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Returns the value of thediffuseColorrecord component.Returns the value of thediffuseTexturePathrecord component.final booleanIndicates whether some other object is "equal to" this one.int[]final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
diffuseColor
@Nullable private final float[] diffuseColorThe field for thediffuseColorrecord component. -
diffuseTexturePath
The field for thediffuseTexturePathrecord component.
-
-
Constructor Details
-
MtlMaterial
public MtlMaterial(@Nonnull String name, @Nullable float[] diffuseColor, @Nullable String diffuseTexturePath) Creates an instance of aMtlMaterialrecord class.- Parameters:
name- the value for thenamerecord componentdiffuseColor- the value for thediffuseColorrecord componentdiffuseTexturePath- the value for thediffuseTexturePathrecord component
-
-
Method Details
-
getDiffuseColorRGB
@Nullable public int[] getDiffuseColorRGB() -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
diffuseColor
@Nullable public float[] diffuseColor()Returns the value of thediffuseColorrecord component.- Returns:
- the value of the
diffuseColorrecord component
-
diffuseTexturePath
Returns the value of thediffuseTexturePathrecord component.- Returns:
- the value of the
diffuseTexturePathrecord component
-