Record Class ExtendedBlockModelSubmit

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

public record ExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose) extends Record implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
An alternative to BlockModelFeatureRenderer.Submit that optionally accepts a Mesh.
  • Field Summary

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

    Constructors
    Constructor
    Description
    ExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose)
    Creates an instance of a ExtendedBlockModelSubmit record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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>
     
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the lightCoords record component.
    @Nullable Mesh
    Returns the value of the mesh record component.
    List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart>
    Returns the value of the modelParts 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.
    Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType>
    Returns the value of the renderTypeFunction record component.
    @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose
    Returns the value of the sheetedDecalPose record component.
    int
    Returns the value of the tintColor 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

  • Constructor Details

    • ExtendedBlockModelSubmit

      public ExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose)
      Creates an instance of a ExtendedBlockModelSubmit record class.
      Parameters:
      pose - the value for the pose record component
      renderTypeFunction - the value for the renderTypeFunction record component
      modelParts - the value for the modelParts record component
      mesh - the value for the mesh record component
      tintLayers - the value for the tintLayers record component
      lightCoords - the value for the lightCoords record component
      overlayCoords - the value for the overlayCoords record component
      tintColor - the value for the tintColor record component
      sheetedDecalPose - the value for the sheetedDecalPose record component
  • Method Details

    • 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
    • renderTypeFunction

      public Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction()
      Returns the value of the renderTypeFunction record component.
      Returns:
      the value of the renderTypeFunction record component
    • modelParts

      public List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts()
      Returns the value of the modelParts record component.
      Returns:
      the value of the modelParts record component
    • mesh

      public @Nullable Mesh mesh()
      Returns the value of the mesh record component.
      Returns:
      the value of the mesh record component
    • tintLayers

      public int[] tintLayers()
      Returns the value of the tintLayers record component.
      Returns:
      the value of the tintLayers 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
    • tintColor

      public int tintColor()
      Returns the value of the tintColor record component.
      Returns:
      the value of the tintColor record component
    • sheetedDecalPose

      public @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose()
      Returns the value of the sheetedDecalPose record component.
      Returns:
      the value of the sheetedDecalPose record component