Package kr.toxicity.library.dynamicuv
Record Class UVTextureName
java.lang.Object
java.lang.Record
kr.toxicity.library.dynamicuv.UVTextureName
- Record Components:
normalPixel- the name of the normal pixel texturetranslucentPixel- the name of the translucent pixel texture
public record UVTextureName(@NotNull String normalPixel, @NotNull String translucentPixel)
extends Record
Represents the names of the textures used in UV mapping.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUVTextureName(@NotNull String normalPixel, @NotNull String translucentPixel) Creates an instance of aUVTextureNamerecord 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.@NotNull StringReturns the value of thenormalPixelrecord component.@NotNull UVByteBuildernormalPixel(@NotNull UVNamespace namespace) Creates a UVByteBuilder for the normal pixel texture.final StringtoString()Returns a string representation of this record class.@NotNull StringReturns the value of thetranslucentPixelrecord component.@NotNull UVByteBuildertranslucentPixel(@NotNull UVNamespace namespace) Creates a UVByteBuilder for the translucent pixel texture.
-
Field Details
-
DEFAULT
The default texture names.
-
-
Constructor Details
-
UVTextureName
public UVTextureName(@NotNull @NotNull String normalPixel, @NotNull @NotNull String translucentPixel) Creates an instance of aUVTextureNamerecord class.- Parameters:
normalPixel- the value for thenormalPixelrecord componenttranslucentPixel- the value for thetranslucentPixelrecord component
-
-
Method Details
-
normalPixel
Creates a UVByteBuilder for the normal pixel texture.- Parameters:
namespace- the UV namespace- Returns:
- the UVByteBuilder
-
translucentPixel
Creates a UVByteBuilder for the translucent pixel texture.- Parameters:
namespace- the UV namespace- Returns:
- the UVByteBuilder
-
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). -
normalPixel
Returns the value of thenormalPixelrecord component.- Returns:
- the value of the
normalPixelrecord component
-
translucentPixel
Returns the value of thetranslucentPixelrecord component.- Returns:
- the value of the
translucentPixelrecord component
-