Record Class MeshAppender.Context

java.lang.Object
java.lang.Record
de.mrjulsen.paw.forge.compat.embeddium.MeshAppender.Context
Record Components:
vertexConsumerProvider - Provides access to VertexConsumers for each render layer. Any vertices pumped into these vertex consumers will be added to the chunk's final mesh
blockRenderView - The chunk section being rendered. You should only retrieve blocks using this, not the client world
sectionOrigin - The origin of the section in the world
sodiumBuildBuffers - Provides access to the Sodium/Embeddium vertex writing APIs. Intended mainly for internal use
Enclosing interface:
MeshAppender

public static record MeshAppender.Context(Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer> vertexConsumerProvider, net.minecraft.world.level.BlockAndTintGetter blockRenderView, net.minecraft.core.SectionPos sectionOrigin, me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers sodiumBuildBuffers) extends Record
Section rendering context for a MeshAppender.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Context(Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer> vertexConsumerProvider, net.minecraft.world.level.BlockAndTintGetter blockRenderView, net.minecraft.core.SectionPos sectionOrigin, me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers sodiumBuildBuffers)
    Creates an instance of a Context record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.BlockAndTintGetter
    Returns the value of the blockRenderView 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.core.SectionPos
    Returns the value of the sectionOrigin record component.
    me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers
    Returns the value of the sodiumBuildBuffers record component.
    final String
    Returns a string representation of this record class.
    Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer>
    Returns the value of the vertexConsumerProvider record component.

    Methods inherited from class java.lang.Object

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

    • Context

      public Context(Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer> vertexConsumerProvider, net.minecraft.world.level.BlockAndTintGetter blockRenderView, net.minecraft.core.SectionPos sectionOrigin, me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers sodiumBuildBuffers)
      Creates an instance of a Context record class.
      Parameters:
      vertexConsumerProvider - the value for the vertexConsumerProvider record component
      blockRenderView - the value for the blockRenderView record component
      sectionOrigin - the value for the sectionOrigin record component
      sodiumBuildBuffers - the value for the sodiumBuildBuffers 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.
    • vertexConsumerProvider

      public Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer> vertexConsumerProvider()
      Returns the value of the vertexConsumerProvider record component.
      Returns:
      the value of the vertexConsumerProvider record component
    • blockRenderView

      public net.minecraft.world.level.BlockAndTintGetter blockRenderView()
      Returns the value of the blockRenderView record component.
      Returns:
      the value of the blockRenderView record component
    • sectionOrigin

      public net.minecraft.core.SectionPos sectionOrigin()
      Returns the value of the sectionOrigin record component.
      Returns:
      the value of the sectionOrigin record component
    • sodiumBuildBuffers

      public me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers sodiumBuildBuffers()
      Returns the value of the sodiumBuildBuffers record component.
      Returns:
      the value of the sodiumBuildBuffers record component