Record Class PreRender<T>

java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.render.model.real_model.PreRender<T>

@Environment(CLIENT) public record PreRender<T>(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    PreRender(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data)
    Creates an instance of a PreRender record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.SubmitNodeCollector
    Returns the value of the collector record component.
    @Nullable T
    Returns the value of the data record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState
    Returns the value of the layer record component.
    int
    Returns the value of the light record component.
    int
    Returns the value of the outline record component.
    int
    Returns the value of the overlay record component.
    com.mojang.blaze3d.vertex.PoseStack
    Returns the value of the poseStack record component.
    net.minecraft.client.renderer.item.ItemStackRenderState
    Returns the value of the state record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • PreRender

      public PreRender(net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.item.ItemStackRenderState state, net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer, com.mojang.blaze3d.vertex.PoseStack poseStack, int light, int overlay, int outline, @Nullable T data)
      Creates an instance of a PreRender record class.
      Parameters:
      collector - the value for the collector record component
      state - the value for the state record component
      layer - the value for the layer record component
      poseStack - the value for the poseStack record component
      light - the value for the light record component
      overlay - the value for the overlay record component
      outline - the value for the outline record component
      data - the value for the data record component
  • 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. 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.
    • collector

      public net.minecraft.client.renderer.SubmitNodeCollector collector()
      Returns the value of the collector record component.
      Returns:
      the value of the collector record component
    • state

      public net.minecraft.client.renderer.item.ItemStackRenderState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • layer

      public net.minecraft.client.renderer.item.ItemStackRenderState.LayerRenderState layer()
      Returns the value of the layer record component.
      Returns:
      the value of the layer record component
    • poseStack

      public com.mojang.blaze3d.vertex.PoseStack poseStack()
      Returns the value of the poseStack record component.
      Returns:
      the value of the poseStack record component
    • light

      public int light()
      Returns the value of the light record component.
      Returns:
      the value of the light record component
    • overlay

      public int overlay()
      Returns the value of the overlay record component.
      Returns:
      the value of the overlay record component
    • outline

      public int outline()
      Returns the value of the outline record component.
      Returns:
      the value of the outline record component
    • data

      public @Nullable T data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component