Record Class RenderPipeline.Snippet

java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.RenderPipeline.Snippet
Enclosing class:
RenderPipeline

public static record RenderPipeline.Snippet(Optional<Identifier> vertexShader, Optional<Identifier> fragmentShader, Optional<ShaderDefines> shaderDefines, Optional<List<String>> samplers, Optional<List<RenderPipeline.UniformDescription>> uniforms, Optional<ColorTargetState> colorTargetState, Optional<DepthStencilState> depthStencilState, Optional<PolygonMode> polygonMode, Optional<Boolean> cull, Optional<VertexFormat> vertexFormat, Optional<VertexFormat.Mode> vertexFormatMode, Optional<StencilTest> stencilTest) extends Record
  • Field Details

    • vertexShader

      private final Optional<Identifier> vertexShader
      The field for the vertexShader record component.
    • fragmentShader

      private final Optional<Identifier> fragmentShader
      The field for the fragmentShader record component.
    • shaderDefines

      private final Optional<ShaderDefines> shaderDefines
      The field for the shaderDefines record component.
    • samplers

      private final Optional<List<String>> samplers
      The field for the samplers record component.
    • uniforms

      The field for the uniforms record component.
    • colorTargetState

      private final Optional<ColorTargetState> colorTargetState
      The field for the colorTargetState record component.
    • depthStencilState

      private final Optional<DepthStencilState> depthStencilState
      The field for the depthStencilState record component.
    • polygonMode

      private final Optional<PolygonMode> polygonMode
      The field for the polygonMode record component.
    • cull

      private final Optional<Boolean> cull
      The field for the cull record component.
    • vertexFormat

      private final Optional<VertexFormat> vertexFormat
      The field for the vertexFormat record component.
    • vertexFormatMode

      private final Optional<VertexFormat.Mode> vertexFormatMode
      The field for the vertexFormatMode record component.
    • stencilTest

      private final Optional<StencilTest> stencilTest
      The field for the stencilTest record component.
  • Constructor Details

  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • vertexShader

      public Optional<Identifier> vertexShader()
      Returns the value of the vertexShader record component.
      Returns:
      the value of the vertexShader record component
    • fragmentShader

      public Optional<Identifier> fragmentShader()
      Returns the value of the fragmentShader record component.
      Returns:
      the value of the fragmentShader record component
    • shaderDefines

      public Optional<ShaderDefines> shaderDefines()
      Returns the value of the shaderDefines record component.
      Returns:
      the value of the shaderDefines record component
    • samplers

      public Optional<List<String>> samplers()
      Returns the value of the samplers record component.
      Returns:
      the value of the samplers record component
    • uniforms

      Returns the value of the uniforms record component.
      Returns:
      the value of the uniforms record component
    • colorTargetState

      public Optional<ColorTargetState> colorTargetState()
      Returns the value of the colorTargetState record component.
      Returns:
      the value of the colorTargetState record component
    • depthStencilState

      public Optional<DepthStencilState> depthStencilState()
      Returns the value of the depthStencilState record component.
      Returns:
      the value of the depthStencilState record component
    • polygonMode

      public Optional<PolygonMode> polygonMode()
      Returns the value of the polygonMode record component.
      Returns:
      the value of the polygonMode record component
    • cull

      public Optional<Boolean> cull()
      Returns the value of the cull record component.
      Returns:
      the value of the cull record component
    • vertexFormat

      public Optional<VertexFormat> vertexFormat()
      Returns the value of the vertexFormat record component.
      Returns:
      the value of the vertexFormat record component
    • vertexFormatMode

      public Optional<VertexFormat.Mode> vertexFormatMode()
      Returns the value of the vertexFormatMode record component.
      Returns:
      the value of the vertexFormatMode record component
    • stencilTest

      public Optional<StencilTest> stencilTest()
      Returns the value of the stencilTest record component.
      Returns:
      the value of the stencilTest record component