Record Class RadarRenderData
java.lang.Object
java.lang.Record
net.nullved.pmweatherapi.client.render.RadarRenderData
- Record Components:
blockEntity- TheRadarBlockEntityassociated with the render callsizeRenderDiameter- The size in blocks of the radarsimSize- The size 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 RadarRenderData(dev.protomanly.pmweather.block.entity.RadarBlockEntity blockEntity, float sizeRenderDiameter, float simSize, 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
RadarRenderData- Since:
- 0.14.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionRadarRenderData(dev.protomanly.pmweather.block.entity.RadarBlockEntity blockEntity, float sizeRenderDiameter, float simSize, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int combinedLightIn, int combinedOverlayIn) Creates an instance of aRadarRenderDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.protomanly.pmweather.block.entity.RadarBlockEntityReturns 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.floatsimSize()Returns the value of thesimSizerecord component.floatReturns the value of thesizeRenderDiameterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RadarRenderData
public RadarRenderData(dev.protomanly.pmweather.block.entity.RadarBlockEntity blockEntity, float sizeRenderDiameter, float simSize, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource multiBufferSource, int combinedLightIn, int combinedOverlayIn) Creates an instance of aRadarRenderDatarecord class.- Parameters:
blockEntity- the value for theblockEntityrecord componentsizeRenderDiameter- the value for thesizeRenderDiameterrecord componentsimSize- the value for thesimSizerecord 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 dev.protomanly.pmweather.block.entity.RadarBlockEntity 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
-
simSize
public float simSize()Returns the value of thesimSizerecord component.- Returns:
- the value of the
simSizerecord 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
-