Record Class ExtendedItemSubmit

java.lang.Object
java.lang.Record
net.fabricmc.fabric.api.client.renderer.v1.render.submit.ExtendedItemSubmit
All Implemented Interfaces:
net.minecraft.client.renderer.feature.submit.SubmitNode, net.minecraft.client.renderer.feature.submit.TranslucentSubmit

public record ExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType) extends Record implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
An alternative to ItemFeatureRenderer.Submit that accepts a MeshView.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedItemSubmit>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType)
    Creates an instance of a ExtendedItemSubmit record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemDisplayContext
    Returns the value of the displayContext record component.
    float
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit>
     
    net.minecraft.client.renderer.item.ItemStackRenderState.FoilType
    Returns the value of the foilType record component.
    final int
    Returns a hash code value for this object.
    boolean
     
    int
    Returns the value of the lightCoords record component.
    Returns the value of the mesh record component.
    int
    Returns the value of the outlineColor record component.
    int
    Returns the value of the overlayCoords record component.
    com.mojang.blaze3d.vertex.PoseStack.Pose
    Returns the value of the pose record component.
    List<net.minecraft.client.resources.model.geometry.BakedQuad>
    Returns the value of the quads record component.
    int[]
    Returns the value of the tintLayers 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
  • Field Details

    • TYPE

      public static final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedItemSubmit> TYPE
  • Constructor Details

    • ExtendedItemSubmit

      public ExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType)
      Creates an instance of a ExtendedItemSubmit record class.
      Parameters:
      pose - the value for the pose record component
      displayContext - the value for the displayContext record component
      lightCoords - the value for the lightCoords record component
      overlayCoords - the value for the overlayCoords record component
      outlineColor - the value for the outlineColor record component
      tintLayers - the value for the tintLayers record component
      quads - the value for the quads record component
      mesh - the value for the mesh record component
      foilType - the value for the foilType record component
  • Method Details

    • hasTranslucency

      public boolean hasTranslucency()
    • distanceToCameraSq

      public float distanceToCameraSq()
      Specified by:
      distanceToCameraSq in interface net.minecraft.client.renderer.feature.submit.TranslucentSubmit
    • featureType

      public net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit> featureType()
      Specified by:
      featureType in interface net.minecraft.client.renderer.feature.submit.SubmitNode
      Specified by:
      featureType in interface net.minecraft.client.renderer.feature.submit.TranslucentSubmit
    • 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.
    • pose

      public com.mojang.blaze3d.vertex.PoseStack.Pose pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • displayContext

      public net.minecraft.world.item.ItemDisplayContext displayContext()
      Returns the value of the displayContext record component.
      Returns:
      the value of the displayContext record component
    • lightCoords

      public int lightCoords()
      Returns the value of the lightCoords record component.
      Returns:
      the value of the lightCoords record component
    • overlayCoords

      public int overlayCoords()
      Returns the value of the overlayCoords record component.
      Returns:
      the value of the overlayCoords record component
    • outlineColor

      public int outlineColor()
      Returns the value of the outlineColor record component.
      Returns:
      the value of the outlineColor record component
    • tintLayers

      public int[] tintLayers()
      Returns the value of the tintLayers record component.
      Returns:
      the value of the tintLayers record component
    • quads

      public List<net.minecraft.client.resources.model.geometry.BakedQuad> quads()
      Returns the value of the quads record component.
      Returns:
      the value of the quads record component
    • mesh

      public MeshView mesh()
      Returns the value of the mesh record component.
      Returns:
      the value of the mesh record component
    • foilType

      public net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType()
      Returns the value of the foilType record component.
      Returns:
      the value of the foilType record component