Record Class DenRenderContext

java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.raids.render.DenRenderContext
Record Components:
entity - The den entity being rendered.
entityYaw - The yaw supplied by the entity renderer.
partialTicks - The current frame partial tick.
poseStack - The active pose stack for the den render.
bufferSource - The buffer source for this render call.
packedLight - The world light packed value supplied by Minecraft.
packedOverlay - The packed overlay value for the den entity.

public record DenRenderContext(DenEntity entity, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay) extends Record
Client-side render state available to data-driven den render effects.
  • Constructor Details

    • DenRenderContext

      public DenRenderContext(DenEntity entity, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay)
      Creates an instance of a DenRenderContext record class.
      Parameters:
      entity - the value for the entity record component
      entityYaw - the value for the entityYaw record component
      partialTicks - the value for the partialTicks record component
      poseStack - the value for the poseStack record component
      bufferSource - the value for the bufferSource record component
      packedLight - the value for the packedLight record component
      packedOverlay - the value for the packedOverlay record component
  • Method Details

    • renderOptions

      public RenderOptions renderOptions()
      Gets the raid type render options for the den being rendered.
      Returns:
      The active raid type render options.
    • color

      public Color color()
      Gets the resolved den tint color for this frame.
      Returns:
      The active raid tint color, or white when tinting is disabled or the den is inactive.
    • models

      public List<ModelData> models()
      Gets the model data used by the den base.
      Returns:
      The active den model data.
    • 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 DenEntity entity()
      Returns the value of the entity record component.
      Returns:
      the value of the entity record component
    • entityYaw

      public float entityYaw()
      Returns the value of the entityYaw record component.
      Returns:
      the value of the entityYaw record component
    • partialTicks

      public float partialTicks()
      Returns the value of the partialTicks record component.
      Returns:
      the value of the partialTicks 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
    • packedLight

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

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