Record Class RenderData

java.lang.Object
java.lang.Record
net.nullved.pmweatherapi.client.render.RenderData
Record Components:
blockEntity - The BlockEntity associated with the render call
sizeRenderDiameter - The size in blocks of the radar
partialTicks - The time, in partial ticks, since last full tick
poseStack - The PoseStack
multiBufferSource - The MultiBufferSource
combinedLightIn - The current light value on the block entity
combinedOverlayIn - The current overlay of the block entity

public record RenderData(net.minecraft.world.level.block.entity.BlockEntity blockEntity, float sizeRenderDiameter, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int combinedLightIn, int combinedOverlayIn) extends Record
A wrapper class to be passed to RenderData
Since:
0.14.15.2
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderData(net.minecraft.world.level.block.entity.BlockEntity blockEntity, float sizeRenderDiameter, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int combinedLightIn, int combinedOverlayIn)
    Creates an instance of a RenderData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.entity.BlockEntity
    Returns the value of the blockEntity record component.
    int
    Returns the value of the combinedLightIn record component.
    int
    Returns the value of the combinedOverlayIn 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.client.renderer.MultiBufferSource
    Returns the value of the multiBufferSource record component.
    float
    Returns the value of the partialTicks record component.
    com.mojang.blaze3d.vertex.PoseStack
    Returns the value of the poseStack record component.
    float
    Returns the value of the sizeRenderDiameter record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • RenderData

      public RenderData(net.minecraft.world.level.block.entity.BlockEntity blockEntity, float sizeRenderDiameter, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int combinedLightIn, int combinedOverlayIn)
      Creates an instance of a RenderData record class.
      Parameters:
      blockEntity - the value for the blockEntity record component
      sizeRenderDiameter - the value for the sizeRenderDiameter record component
      partialTicks - the value for the partialTicks record component
      poseStack - the value for the poseStack record component
      multiBufferSource - the value for the multiBufferSource record component
      combinedLightIn - the value for the combinedLightIn record component
      combinedOverlayIn - the value for the combinedOverlayIn 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. 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.
    • blockEntity

      public net.minecraft.world.level.block.entity.BlockEntity blockEntity()
      Returns the value of the blockEntity record component.
      Returns:
      the value of the blockEntity record component
    • sizeRenderDiameter

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

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

      public int combinedLightIn()
      Returns the value of the combinedLightIn record component.
      Returns:
      the value of the combinedLightIn record component
    • combinedOverlayIn

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