Record Class BedrockActorMaterialDefinitions.Material

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorMaterialDefinitions.Material
Enclosing class:
BedrockActorMaterialDefinitions

public static record BedrockActorMaterialDefinitions.Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth)
     
    Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask)
     
    Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite)
    Creates an instance of a Material record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the alphaTest record component.
    boolean
    Returns the value of the alphaWrite record component.
    boolean
    Returns the value of the colorMask record component.
    boolean
    Returns the value of the cull record component.
    Returns the value of the depth record component.
    boolean
    Returns the value of the emissive record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the glint record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the masked record component.
    int
     
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the uvAnimation record component.
     

    Methods inherited from class Object

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

  • Constructor Details

    • Material

      public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth)
    • Material

      public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask)
    • Material

      public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite)
      Creates an instance of a Material record class.
      Parameters:
      alphaTest - the value for the alphaTest record component
      cull - the value for the cull record component
      emissive - the value for the emissive record component
      uvAnimation - the value for the uvAnimation record component
      masked - the value for the masked record component
      glint - the value for the glint record component
      depth - the value for the depth record component
      colorMask - the value for the colorMask record component
      alphaWrite - the value for the alphaWrite record component
  • Method Details

    • textureCount

      public int textureCount()
    • withoutEmission

      public BedrockActorMaterialDefinitions.Material withoutEmission()
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • alphaTest

      public boolean alphaTest()
      Returns the value of the alphaTest record component.
      Returns:
      the value of the alphaTest record component
    • cull

      public boolean cull()
      Returns the value of the cull record component.
      Returns:
      the value of the cull record component
    • emissive

      public boolean emissive()
      Returns the value of the emissive record component.
      Returns:
      the value of the emissive record component
    • uvAnimation

      public boolean uvAnimation()
      Returns the value of the uvAnimation record component.
      Returns:
      the value of the uvAnimation record component
    • masked

      public boolean masked()
      Returns the value of the masked record component.
      Returns:
      the value of the masked record component
    • glint

      public boolean glint()
      Returns the value of the glint record component.
      Returns:
      the value of the glint record component
    • depth

      public BedrockActorDepth depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • colorMask

      public boolean colorMask()
      Returns the value of the colorMask record component.
      Returns:
      the value of the colorMask record component
    • alphaWrite

      public boolean alphaWrite()
      Returns the value of the alphaWrite record component.
      Returns:
      the value of the alphaWrite record component