Record Class PixelRenderData

java.lang.Object
java.lang.Record
net.nullved.pmweatherapi.client.render.PixelRenderData
Record Components:
canRender - true if either the server doesn't require WSR-88D or a WSR-88D is complete within 4 chunks of the radar
rdbz - The relative reflectivity
velocity - The velocity
temp - The temperature
x - The x-position of the pixel (from -resolution to resolution)
z - The z-position of the pixel (from -resolution to resolution)
resolution - The resolution of the radar
worldPos - The world position of the pixel
renderData - The associated RenderData

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

    Constructors
    Constructor
    Description
    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 a PixelRenderData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the canRender record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the rdbz record component.
    Returns the value of the renderData record component.
    int
    Returns the value of the resolution record component.
    float
    Returns the value of the temp record component.
    final String
    Returns a string representation of this record class.
    float
    Returns the value of the velocity record component.
    net.minecraft.world.phys.Vec3
    Returns the value of the worldPos record component.
    int
    x()
    Returns the value of the x record component.
    int
    z()
    Returns the value of the z record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a PixelRenderData record class.
      Parameters:
      canRender - the value for the canRender record component
      rdbz - the value for the rdbz record component
      velocity - the value for the velocity record component
      temp - the value for the temp record component
      x - the value for the x record component
      z - the value for the z record component
      resolution - the value for the resolution record component
      worldPos - the value for the worldPos record component
      renderData - the value for the renderData 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.
    • canRender

      public boolean canRender()
      Returns the value of the canRender record component.
      Returns:
      the value of the canRender record component
    • rdbz

      public float rdbz()
      Returns the value of the rdbz record component.
      Returns:
      the value of the rdbz record component
    • velocity

      public float velocity()
      Returns the value of the velocity record component.
      Returns:
      the value of the velocity record component
    • temp

      public float temp()
      Returns the value of the temp record component.
      Returns:
      the value of the temp record component
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • z

      public int z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • resolution

      public int resolution()
      Returns the value of the resolution record component.
      Returns:
      the value of the resolution record component
    • worldPos

      public net.minecraft.world.phys.Vec3 worldPos()
      Returns the value of the worldPos record component.
      Returns:
      the value of the worldPos record component
    • renderData

      public RenderData renderData()
      Returns the value of the renderData record component.
      Returns:
      the value of the renderData record component