Record Class SceneData.MapFrameData

java.lang.Object
java.lang.Record
com.soulfiremc.server.renderer.SceneData.MapFrameData
Enclosing class:
SceneData

public static record SceneData.MapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors) extends Record
Pre-computed data for an item frame containing a map.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors)
    Creates an instance of a MapFrameData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.AABB
    Returns the value of the bbox record component.
    byte[]
    Returns the value of the colors record component.
    net.minecraft.core.Direction
    Returns the value of the direction record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the posX record component.
    double
    Returns the value of the posY record component.
    double
    Returns the value of the posZ record component.
    int
    Returns the value of the rotation record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • MapFrameData

      public MapFrameData(net.minecraft.world.phys.AABB bbox, net.minecraft.core.Direction direction, double posX, double posY, double posZ, int rotation, byte[] colors)
      Creates an instance of a MapFrameData record class.
      Parameters:
      bbox - the value for the bbox record component
      direction - the value for the direction record component
      posX - the value for the posX record component
      posY - the value for the posY record component
      posZ - the value for the posZ record component
      rotation - the value for the rotation record component
      colors - the value for the colors 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 the compare method from their corresponding wrapper classes.
      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.
    • bbox

      public net.minecraft.world.phys.AABB bbox()
      Returns the value of the bbox record component.
      Returns:
      the value of the bbox record component
    • direction

      public net.minecraft.core.Direction direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • posX

      public double posX()
      Returns the value of the posX record component.
      Returns:
      the value of the posX record component
    • posY

      public double posY()
      Returns the value of the posY record component.
      Returns:
      the value of the posY record component
    • posZ

      public double posZ()
      Returns the value of the posZ record component.
      Returns:
      the value of the posZ record component
    • rotation

      public int rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • colors

      public byte[] colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component