Record Class CompositeRenderTypeData

java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.CompositeRenderTypeData

public record CompositeRenderTypeData(@Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, RenderTypeLayer[] layers) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<CompositeRenderTypeData>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompositeRenderTypeData(@Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, RenderTypeLayer[] layers)
    Creates an instance of a CompositeRenderTypeData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the affectsCrumbling record component.
    int
    Returns the value of the bufferSize record component.
    net.minecraft.client.renderer.RenderType
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    com.mojang.blaze3d.vertex.VertexFormat
    Returns the value of the format record component.
    final int
    Returns a hash code value for this object.
    @Nullable String
    Returns the value of the inject record component.
    Returns the value of the layers record component.
    com.mojang.blaze3d.vertex.VertexFormat.Mode
    Returns the value of the mode record component.
    boolean
    Returns the value of the outline record component.
    int
    Returns the value of the priority record component.
    boolean
    Returns the value of the replace record component.
    boolean
    Returns the value of the sort record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • CompositeRenderTypeData

      public CompositeRenderTypeData(@Nullable @Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, RenderTypeLayer[] layers)
      Creates an instance of a CompositeRenderTypeData record class.
      Parameters:
      inject - the value for the inject record component
      priority - the value for the priority record component
      replace - the value for the replace record component
      format - the value for the format record component
      mode - the value for the mode record component
      bufferSize - the value for the bufferSize record component
      affectsCrumbling - the value for the affectsCrumbling record component
      sort - the value for the sort record component
      outline - the value for the outline record component
      layers - the value for the layers record component
  • Method Details

    • createRenderType

      @Internal public net.minecraft.client.renderer.RenderType createRenderType(String name)
    • 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.
    • inject

      @Nullable public @Nullable String inject()
      Returns the value of the inject record component.
      Returns:
      the value of the inject record component
    • priority

      public int priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • replace

      public boolean replace()
      Returns the value of the replace record component.
      Returns:
      the value of the replace record component
    • format

      public com.mojang.blaze3d.vertex.VertexFormat format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • mode

      public com.mojang.blaze3d.vertex.VertexFormat.Mode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • bufferSize

      public int bufferSize()
      Returns the value of the bufferSize record component.
      Returns:
      the value of the bufferSize record component
    • affectsCrumbling

      public boolean affectsCrumbling()
      Returns the value of the affectsCrumbling record component.
      Returns:
      the value of the affectsCrumbling record component
    • sort

      public boolean sort()
      Returns the value of the sort record component.
      Returns:
      the value of the sort record component
    • outline

      public boolean outline()
      Returns the value of the outline record component.
      Returns:
      the value of the outline record component
    • layers

      public RenderTypeLayer[] layers()
      Returns the value of the layers record component.
      Returns:
      the value of the layers record component