Record Class FeatureFrameContext

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.FeatureFrameContext

public record FeatureFrameContext(OptionsRenderState options, Font font, BlockStateModelSet blockStateModelSet, BlockColors blockColors, TextureManager textureManager, AtlasManager atlasManager, GpuTextureView lightmap, StagedVertexBuffer stagedVertexBuffer) extends Record
  • Field Details

    • options

      private final OptionsRenderState options
      The field for the options record component.
    • font

      private final Font font
      The field for the font record component.
    • blockStateModelSet

      private final BlockStateModelSet blockStateModelSet
      The field for the blockStateModelSet record component.
    • blockColors

      private final BlockColors blockColors
      The field for the blockColors record component.
    • textureManager

      private final TextureManager textureManager
      The field for the textureManager record component.
    • atlasManager

      private final AtlasManager atlasManager
      The field for the atlasManager record component.
    • lightmap

      private final GpuTextureView lightmap
      The field for the lightmap record component.
    • stagedVertexBuffer

      private final StagedVertexBuffer stagedVertexBuffer
      The field for the stagedVertexBuffer record component.
  • Constructor Details

    • FeatureFrameContext

      public FeatureFrameContext(OptionsRenderState options, Font font, BlockStateModelSet blockStateModelSet, BlockColors blockColors, TextureManager textureManager, AtlasManager atlasManager, GpuTextureView lightmap, StagedVertexBuffer stagedVertexBuffer)
      Creates an instance of a FeatureFrameContext record class.
      Parameters:
      options - the value for the options record component
      font - the value for the font record component
      blockStateModelSet - the value for the blockStateModelSet record component
      blockColors - the value for the blockColors record component
      textureManager - the value for the textureManager record component
      atlasManager - the value for the atlasManager record component
      lightmap - the value for the lightmap record component
      stagedVertexBuffer - the value for the stagedVertexBuffer 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. 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.
    • options

      public OptionsRenderState options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • font

      public Font font()
      Returns the value of the font record component.
      Returns:
      the value of the font record component
    • blockStateModelSet

      public BlockStateModelSet blockStateModelSet()
      Returns the value of the blockStateModelSet record component.
      Returns:
      the value of the blockStateModelSet record component
    • blockColors

      public BlockColors blockColors()
      Returns the value of the blockColors record component.
      Returns:
      the value of the blockColors record component
    • textureManager

      public TextureManager textureManager()
      Returns the value of the textureManager record component.
      Returns:
      the value of the textureManager record component
    • atlasManager

      public AtlasManager atlasManager()
      Returns the value of the atlasManager record component.
      Returns:
      the value of the atlasManager record component
    • lightmap

      public GpuTextureView lightmap()
      Returns the value of the lightmap record component.
      Returns:
      the value of the lightmap record component
    • stagedVertexBuffer

      public StagedVertexBuffer stagedVertexBuffer()
      Returns the value of the stagedVertexBuffer record component.
      Returns:
      the value of the stagedVertexBuffer record component