Record Class PixelRenderData
java.lang.Object
java.lang.Record
net.nullved.pmweatherapi.client.render.PixelRenderData
- Record Components:
canRender-trueif either the server doesn't require WSR-88D or a WSR-88D is complete within 4 chunks of the radarrdbz- The relative reflectivityvelocity- The velocitytemp- The temperaturex- The x-position of the pixel (from-resolutiontoresolution)z- The z-position of the pixel (from-resolutiontoresolution)resolution- The resolution of the radarworldPos- The world position of the pixelrenderData- The associatedRenderData
public record PixelRenderData(boolean canRender, float rdbz, float velocity, float temp, int x, int z, int resolution, net.minecraft.world.phys.Vec3 worldPos, RenderData renderData)
extends Record
Specific rendering data for a pixel on the radar
- Since:
- 0.14.15.6
-
Constructor Summary
ConstructorsConstructorDescriptionPixelRenderData(boolean canRender, float rdbz, float velocity, float temp, int x, int z, int resolution, net.minecraft.world.phys.Vec3 worldPos, RenderData renderData) Creates an instance of aPixelRenderDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanRenderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatrdbz()Returns the value of therdbzrecord component.Returns the value of therenderDatarecord component.intReturns the value of theresolutionrecord component.floattemp()Returns the value of thetemprecord component.final StringtoString()Returns a string representation of this record class.floatvelocity()Returns the value of thevelocityrecord component.net.minecraft.world.phys.Vec3worldPos()Returns the value of theworldPosrecord component.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
PixelRenderData
public PixelRenderData(boolean canRender, float rdbz, float velocity, float temp, int x, int z, int resolution, net.minecraft.world.phys.Vec3 worldPos, RenderData renderData) Creates an instance of aPixelRenderDatarecord class.- Parameters:
canRender- the value for thecanRenderrecord componentrdbz- the value for therdbzrecord componentvelocity- the value for thevelocityrecord componenttemp- the value for thetemprecord componentx- the value for thexrecord componentz- the value for thezrecord componentresolution- the value for theresolutionrecord componentworldPos- the value for theworldPosrecord componentrenderData- the value for therenderDatarecord 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 '=='. -
canRender
public boolean canRender()Returns the value of thecanRenderrecord component.- Returns:
- the value of the
canRenderrecord component
-
rdbz
public float rdbz()Returns the value of therdbzrecord component.- Returns:
- the value of the
rdbzrecord component
-
velocity
public float velocity()Returns the value of thevelocityrecord component.- Returns:
- the value of the
velocityrecord component
-
temp
public float temp()Returns the value of thetemprecord component.- Returns:
- the value of the
temprecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
resolution
public int resolution()Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
worldPos
public net.minecraft.world.phys.Vec3 worldPos()Returns the value of theworldPosrecord component.- Returns:
- the value of the
worldPosrecord component
-
renderData
Returns the value of therenderDatarecord component.- Returns:
- the value of the
renderDatarecord component
-