Record Class RenderContext
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.entity.RenderContext
public record RenderContext(RenderableEntity entity, ModelData modelData, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, ShaderParameters shaderParameters, Supplier<net.minecraft.client.renderer.ShaderInstance> shader, int packedOverlay, int packedLight, float[] renderColor, net.minecraft.resources.ResourceLocation overrideTexture, boolean wireFrame, boolean vertexMode, net.minecraft.resources.ResourceLocation[] textures, int modelIndex, String attachmentPoint, BoneTransformSupplier boneTransformSupplier, boolean applyZOffsetFix)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRenderContext(RenderableEntity entity, ModelData modelData, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, ShaderParameters shaderParameters, Supplier<net.minecraft.client.renderer.ShaderInstance> shader, int packedOverlay, int packedLight, float[] renderColor, net.minecraft.resources.ResourceLocation overrideTexture, boolean wireFrame, boolean vertexMode, net.minecraft.resources.ResourceLocation[] textures, int modelIndex, String attachmentPoint, BoneTransformSupplier boneTransformSupplier, boolean applyZOffsetFix) Creates an instance of aRenderContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theapplyZOffsetFixrecord component.Returns the value of theattachmentPointrecord component.Returns the value of theboneTransformSupplierrecord component.net.minecraft.client.renderer.MultiBufferSourceReturns the value of thebufferSourcerecord component.static RenderContext.Builderbuilder()static RenderContext.Buildercopy(RenderContext context) entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelDatarecord component.intReturns the value of themodelIndexrecord component.net.minecraft.resources.ResourceLocationReturns the value of theoverrideTexturerecord component.intReturns the value of thepackedLightrecord component.intReturns the value of thepackedOverlayrecord component.com.mojang.blaze3d.vertex.PoseStackReturns the value of theposeStackrecord component.float[]Returns the value of therenderColorrecord component.Supplier<net.minecraft.client.renderer.ShaderInstance> shader()Returns the value of theshaderrecord component.Returns the value of theshaderParametersrecord component.net.minecraft.resources.ResourceLocation[]textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevertexModerecord component.booleanReturns the value of thewireFramerecord component.
-
Constructor Details
-
RenderContext
public RenderContext(RenderableEntity entity, ModelData modelData, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, ShaderParameters shaderParameters, Supplier<net.minecraft.client.renderer.ShaderInstance> shader, int packedOverlay, int packedLight, float[] renderColor, net.minecraft.resources.ResourceLocation overrideTexture, boolean wireFrame, boolean vertexMode, net.minecraft.resources.ResourceLocation[] textures, int modelIndex, String attachmentPoint, BoneTransformSupplier boneTransformSupplier, boolean applyZOffsetFix) Creates an instance of aRenderContextrecord class.- Parameters:
entity- the value for theentityrecord componentmodelData- the value for themodelDatarecord componentposeStack- the value for theposeStackrecord componentbufferSource- the value for thebufferSourcerecord componentshaderParameters- the value for theshaderParametersrecord componentshader- the value for theshaderrecord componentpackedOverlay- the value for thepackedOverlayrecord componentpackedLight- the value for thepackedLightrecord componentrenderColor- the value for therenderColorrecord componentoverrideTexture- the value for theoverrideTexturerecord componentwireFrame- the value for thewireFramerecord componentvertexMode- the value for thevertexModerecord componenttextures- the value for thetexturesrecord componentmodelIndex- the value for themodelIndexrecord componentattachmentPoint- the value for theattachmentPointrecord componentboneTransformSupplier- the value for theboneTransformSupplierrecord componentapplyZOffsetFix- the value for theapplyZOffsetFixrecord component
-
-
Method Details
-
builder
-
copy
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
modelData
Returns the value of themodelDatarecord component.- Returns:
- the value of the
modelDatarecord component
-
poseStack
public com.mojang.blaze3d.vertex.PoseStack poseStack()Returns the value of theposeStackrecord component.- Returns:
- the value of the
poseStackrecord component
-
bufferSource
public net.minecraft.client.renderer.MultiBufferSource bufferSource()Returns the value of thebufferSourcerecord component.- Returns:
- the value of the
bufferSourcerecord component
-
shaderParameters
Returns the value of theshaderParametersrecord component.- Returns:
- the value of the
shaderParametersrecord component
-
shader
Returns the value of theshaderrecord component.- Returns:
- the value of the
shaderrecord component
-
packedOverlay
public int packedOverlay()Returns the value of thepackedOverlayrecord component.- Returns:
- the value of the
packedOverlayrecord component
-
packedLight
public int packedLight()Returns the value of thepackedLightrecord component.- Returns:
- the value of the
packedLightrecord component
-
renderColor
public float[] renderColor()Returns the value of therenderColorrecord component.- Returns:
- the value of the
renderColorrecord component
-
overrideTexture
public net.minecraft.resources.ResourceLocation overrideTexture()Returns the value of theoverrideTexturerecord component.- Returns:
- the value of the
overrideTexturerecord component
-
wireFrame
public boolean wireFrame()Returns the value of thewireFramerecord component.- Returns:
- the value of the
wireFramerecord component
-
vertexMode
public boolean vertexMode()Returns the value of thevertexModerecord component.- Returns:
- the value of the
vertexModerecord component
-
textures
public net.minecraft.resources.ResourceLocation[] textures()Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
modelIndex
public int modelIndex()Returns the value of themodelIndexrecord component.- Returns:
- the value of the
modelIndexrecord component
-
attachmentPoint
Returns the value of theattachmentPointrecord component.- Returns:
- the value of the
attachmentPointrecord component
-
boneTransformSupplier
Returns the value of theboneTransformSupplierrecord component.- Returns:
- the value of the
boneTransformSupplierrecord component
-
applyZOffsetFix
public boolean applyZOffsetFix()Returns the value of theapplyZOffsetFixrecord component.- Returns:
- the value of the
applyZOffsetFixrecord component
-