Record Class ModelUV

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelUV
Record Components:
uv - uv
rotation - rotation
texture - texture

public record ModelUV(@NotNull Float4 uv, float rotation, @Nullable String texture) extends Record
UV data of a model
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelUV(@NotNull Float4 uv, float rotation, @Nullable String texture)
    Creates an instance of a ModelUV record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the rotation record component.
    @Nullable String
    Returns the value of the texture record component.
    @NotNull com.google.gson.JsonObject
    toJson(@NotNull ModelBlueprint parent, int tint)
    Gets json data of uv
    final String
    Returns a string representation of this record class.
    @NotNull Float4
    uv()
    Returns the value of the uv record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModelUV

      public ModelUV(@NotNull @NotNull Float4 uv, float rotation, @Nullable @Nullable String texture)
      Creates an instance of a ModelUV record class.
      Parameters:
      uv - the value for the uv record component
      rotation - the value for the rotation record component
      texture - the value for the texture record component
  • Method Details

    • toJson

      @NotNull public @NotNull com.google.gson.JsonObject toJson(@NotNull @NotNull ModelBlueprint parent, int tint)
      Gets json data of uv
      Parameters:
      parent - parent blueprint
      tint - tint index
      Returns:
      json
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uv

      @NotNull public @NotNull Float4 uv()
      Returns the value of the uv record component.
      Returns:
      the value of the uv record component
    • rotation

      public float rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • texture

      @Nullable public @Nullable String texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component