java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.Material

public record Material(net.minecraft.resources.ResourceLocation texture, @Nullable net.minecraft.resources.ResourceLocation normalMap, @Nullable net.minecraft.resources.ResourceLocation specularMap, org.joml.Vector4f baseColor, @Nullable org.joml.Vector4f diffuseColor, org.joml.Vector2d uvOffset, org.joml.Vector2d uvScale, double uvRotation) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Material(@Nullable net.minecraft.resources.ResourceLocation texture, net.minecraft.resources.ResourceLocation normalMap, net.minecraft.resources.ResourceLocation specularMap, org.joml.Vector4f baseColor, org.joml.Vector4f diffuseColor, org.joml.Vector2d uvOffset, org.joml.Vector2d uvScale, double uvRotation)
    Creates an instance of a Material record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector4f
    Returns the value of the baseColor record component.
    @Nullable org.joml.Vector4f
    Returns the value of the diffuseColor record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    static List<Material>
    fromAssimp(org.lwjgl.assimp.AIScene scene, net.minecraft.resources.ResourceLocation backupTexture)
     
    static Material
    fromAssimp(org.lwjgl.assimp.AIScene scene, org.lwjgl.assimp.AIMaterial assimpMaterial, net.minecraft.resources.ResourceLocation backupTexture)
     
    final int
    Returns a hash code value for this object.
    @Nullable net.minecraft.resources.ResourceLocation
    Returns the value of the normalMap record component.
    @Nullable net.minecraft.resources.ResourceLocation
    Returns the value of the specularMap record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.
    org.joml.Vector2d
    Returns the value of the uvOffset record component.
    double
    Returns the value of the uvRotation record component.
    org.joml.Vector2d
    Returns the value of the uvScale record component.

    Methods inherited from class java.lang.Object

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

    • Material

      public Material(@Nullable @Nullable net.minecraft.resources.ResourceLocation texture, net.minecraft.resources.ResourceLocation normalMap, net.minecraft.resources.ResourceLocation specularMap, org.joml.Vector4f baseColor, org.joml.Vector4f diffuseColor, org.joml.Vector2d uvOffset, org.joml.Vector2d uvScale, double uvRotation)
      Creates an instance of a Material record class.
      Parameters:
      texture - the value for the texture record component
      normalMap - the value for the normalMap record component
      specularMap - the value for the specularMap record component
      baseColor - the value for the baseColor record component
      diffuseColor - the value for the diffuseColor record component
      uvOffset - the value for the uvOffset record component
      uvScale - the value for the uvScale record component
      uvRotation - the value for the uvRotation record component
  • Method Details

    • fromAssimp

      public static List<Material> fromAssimp(org.lwjgl.assimp.AIScene scene, net.minecraft.resources.ResourceLocation backupTexture)
    • fromAssimp

      public static Material fromAssimp(org.lwjgl.assimp.AIScene scene, org.lwjgl.assimp.AIMaterial assimpMaterial, net.minecraft.resources.ResourceLocation backupTexture)
    • 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.
    • texture

      public net.minecraft.resources.ResourceLocation texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • normalMap

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation normalMap()
      Returns the value of the normalMap record component.
      Returns:
      the value of the normalMap record component
    • specularMap

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation specularMap()
      Returns the value of the specularMap record component.
      Returns:
      the value of the specularMap record component
    • baseColor

      public org.joml.Vector4f baseColor()
      Returns the value of the baseColor record component.
      Returns:
      the value of the baseColor record component
    • diffuseColor

      @Nullable public @Nullable org.joml.Vector4f diffuseColor()
      Returns the value of the diffuseColor record component.
      Returns:
      the value of the diffuseColor record component
    • uvOffset

      public org.joml.Vector2d uvOffset()
      Returns the value of the uvOffset record component.
      Returns:
      the value of the uvOffset record component
    • uvScale

      public org.joml.Vector2d uvScale()
      Returns the value of the uvScale record component.
      Returns:
      the value of the uvScale record component
    • uvRotation

      public double uvRotation()
      Returns the value of the uvRotation record component.
      Returns:
      the value of the uvRotation record component