Record Class RenderData
java.lang.Object
java.lang.Record
net.nullved.pmweatherapi.client.render.RenderData
- Record Components:
blockEntity- TheBlockEntityassociated with the render callsizeRenderDiameter- The size in blocks of the radarpartialTicks- The time, in partial ticks, since last full tickposeStack- ThePoseStackmultiBufferSource- TheMultiBufferSourcecombinedLightIn- The current light value on the block entitycombinedOverlayIn- 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
ConstructorsConstructorDescriptionRenderData(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 aRenderDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.entity.BlockEntityReturns the value of theblockEntityrecord component.intReturns the value of thecombinedLightInrecord component.intReturns the value of thecombinedOverlayInrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.MultiBufferSourceReturns the value of themultiBufferSourcerecord component.floatReturns the value of thepartialTicksrecord component.com.mojang.blaze3d.vertex.PoseStackReturns the value of theposeStackrecord component.floatReturns the value of thesizeRenderDiameterrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRenderDatarecord class.- Parameters:
blockEntity- the value for theblockEntityrecord componentsizeRenderDiameter- the value for thesizeRenderDiameterrecord componentpartialTicks- the value for thepartialTicksrecord componentposeStack- the value for theposeStackrecord componentmultiBufferSource- the value for themultiBufferSourcerecord componentcombinedLightIn- the value for thecombinedLightInrecord componentcombinedOverlayIn- the value for thecombinedOverlayInrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
blockEntity
public net.minecraft.world.level.block.entity.BlockEntity blockEntity()Returns the value of theblockEntityrecord component.- Returns:
- the value of the
blockEntityrecord component
-
sizeRenderDiameter
public float sizeRenderDiameter()Returns the value of thesizeRenderDiameterrecord component.- Returns:
- the value of the
sizeRenderDiameterrecord component
-
partialTicks
public float partialTicks()Returns the value of thepartialTicksrecord component.- Returns:
- the value of the
partialTicksrecord component
-
poseStack
public com.mojang.blaze3d.vertex.PoseStack poseStack()Returns the value of theposeStackrecord component.- Returns:
- the value of the
poseStackrecord component
-
multiBufferSource
public net.minecraft.client.renderer.MultiBufferSource multiBufferSource()Returns the value of themultiBufferSourcerecord component.- Returns:
- the value of the
multiBufferSourcerecord component
-
combinedLightIn
public int combinedLightIn()Returns the value of thecombinedLightInrecord component.- Returns:
- the value of the
combinedLightInrecord component
-
combinedOverlayIn
public int combinedOverlayIn()Returns the value of thecombinedOverlayInrecord component.- Returns:
- the value of the
combinedOverlayInrecord component
-