Record Class MeshAppender.Context
java.lang.Object
java.lang.Record
de.mrjulsen.paw.forge.compat.embeddium.MeshAppender.Context
- Record Components:
vertexConsumerProvider- Provides access toVertexConsumers for each render layer. Any vertices pumped into these vertex consumers will be added to the chunk's final meshblockRenderView- The chunk section being rendered. You should only retrieve blocks using this, not the client worldsectionOrigin- The origin of the section in the worldsodiumBuildBuffers- 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
ConstructorsConstructorDescriptionContext(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 aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.BlockAndTintGetterReturns the value of theblockRenderViewrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.SectionPosReturns the value of thesectionOriginrecord component.me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffersReturns the value of thesodiumBuildBuffersrecord component.final StringtoString()Returns a string representation of this record class.Function<net.minecraft.client.renderer.RenderType, com.mojang.blaze3d.vertex.VertexConsumer> Returns the value of thevertexConsumerProviderrecord component.
-
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 aContextrecord class.- Parameters:
vertexConsumerProvider- the value for thevertexConsumerProviderrecord componentblockRenderView- the value for theblockRenderViewrecord componentsectionOrigin- the value for thesectionOriginrecord componentsodiumBuildBuffers- the value for thesodiumBuildBuffersrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
vertexConsumerProvider
public Function<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.VertexConsumer> vertexConsumerProvider()Returns the value of thevertexConsumerProviderrecord component.- Returns:
- the value of the
vertexConsumerProviderrecord component
-
blockRenderView
public net.minecraft.world.level.BlockAndTintGetter blockRenderView()Returns the value of theblockRenderViewrecord component.- Returns:
- the value of the
blockRenderViewrecord component
-
sectionOrigin
public net.minecraft.core.SectionPos sectionOrigin()Returns the value of thesectionOriginrecord component.- Returns:
- the value of the
sectionOriginrecord component
-
sodiumBuildBuffers
public me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers sodiumBuildBuffers()Returns the value of thesodiumBuildBuffersrecord component.- Returns:
- the value of the
sodiumBuildBuffersrecord component
-