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
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a RenderContext record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the applyZOffsetFix record component.
    Returns the value of the attachmentPoint record component.
    Returns the value of the boneTransformSupplier record component.
    net.minecraft.client.renderer.MultiBufferSource
    Returns the value of the bufferSource record component.
     
     
    Returns the value of the entity record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the modelData record component.
    int
    Returns the value of the modelIndex record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the overrideTexture record component.
    int
    Returns the value of the packedLight record component.
    int
    Returns the value of the packedOverlay record component.
    com.mojang.blaze3d.vertex.PoseStack
    Returns the value of the poseStack record component.
    float[]
    Returns the value of the renderColor record component.
    Supplier<net.minecraft.client.renderer.ShaderInstance>
    Returns the value of the shader record component.
    Returns the value of the shaderParameters record component.
    net.minecraft.resources.ResourceLocation[]
    Returns the value of the textures record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the vertexMode record component.
    boolean
    Returns the value of the wireFrame record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a RenderContext record class.
      Parameters:
      entity - the value for the entity record component
      modelData - the value for the modelData record component
      poseStack - the value for the poseStack record component
      bufferSource - the value for the bufferSource record component
      shaderParameters - the value for the shaderParameters record component
      shader - the value for the shader record component
      packedOverlay - the value for the packedOverlay record component
      packedLight - the value for the packedLight record component
      renderColor - the value for the renderColor record component
      overrideTexture - the value for the overrideTexture record component
      wireFrame - the value for the wireFrame record component
      vertexMode - the value for the vertexMode record component
      textures - the value for the textures record component
      modelIndex - the value for the modelIndex record component
      attachmentPoint - the value for the attachmentPoint record component
      boneTransformSupplier - the value for the boneTransformSupplier record component
      applyZOffsetFix - the value for the applyZOffsetFix record component
  • Method Details

    • builder

      public static RenderContext.Builder builder()
    • copy

      public static RenderContext.Builder copy(RenderContext context)
    • 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 '=='.
      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.
    • entity

      public RenderableEntity entity()
      Returns the value of the entity record component.
      Returns:
      the value of the entity record component
    • modelData

      public ModelData modelData()
      Returns the value of the modelData record component.
      Returns:
      the value of the modelData record component
    • poseStack

      public com.mojang.blaze3d.vertex.PoseStack poseStack()
      Returns the value of the poseStack record component.
      Returns:
      the value of the poseStack record component
    • bufferSource

      public net.minecraft.client.renderer.MultiBufferSource bufferSource()
      Returns the value of the bufferSource record component.
      Returns:
      the value of the bufferSource record component
    • shaderParameters

      public ShaderParameters shaderParameters()
      Returns the value of the shaderParameters record component.
      Returns:
      the value of the shaderParameters record component
    • shader

      public Supplier<net.minecraft.client.renderer.ShaderInstance> shader()
      Returns the value of the shader record component.
      Returns:
      the value of the shader record component
    • packedOverlay

      public int packedOverlay()
      Returns the value of the packedOverlay record component.
      Returns:
      the value of the packedOverlay record component
    • packedLight

      public int packedLight()
      Returns the value of the packedLight record component.
      Returns:
      the value of the packedLight record component
    • renderColor

      public float[] renderColor()
      Returns the value of the renderColor record component.
      Returns:
      the value of the renderColor record component
    • overrideTexture

      public net.minecraft.resources.ResourceLocation overrideTexture()
      Returns the value of the overrideTexture record component.
      Returns:
      the value of the overrideTexture record component
    • wireFrame

      public boolean wireFrame()
      Returns the value of the wireFrame record component.
      Returns:
      the value of the wireFrame record component
    • vertexMode

      public boolean vertexMode()
      Returns the value of the vertexMode record component.
      Returns:
      the value of the vertexMode record component
    • textures

      public net.minecraft.resources.ResourceLocation[] textures()
      Returns the value of the textures record component.
      Returns:
      the value of the textures record component
    • modelIndex

      public int modelIndex()
      Returns the value of the modelIndex record component.
      Returns:
      the value of the modelIndex record component
    • attachmentPoint

      public String attachmentPoint()
      Returns the value of the attachmentPoint record component.
      Returns:
      the value of the attachmentPoint record component
    • boneTransformSupplier

      public BoneTransformSupplier boneTransformSupplier()
      Returns the value of the boneTransformSupplier record component.
      Returns:
      the value of the boneTransformSupplier record component
    • applyZOffsetFix

      public boolean applyZOffsetFix()
      Returns the value of the applyZOffsetFix record component.
      Returns:
      the value of the applyZOffsetFix record component