Record Class LightUV

java.lang.Object
java.lang.Record
dev.latvian.mods.klib.texture.LightUV
All Implemented Interfaces:
PackedUV

public record LightUV(int packed, int u, int v) extends Record implements PackedUV
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LightUV
     
    static final LightUV
     
    static final LightUV
     
    static final LightUV
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,LightUV>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LightUV(int packed)
     
    LightUV(int u, int v)
     
    LightUV(int packed, int u, int v)
    Creates an instance of a LightUV record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    int
    Returns the value of the packed record component.
    final String
    Returns a string representation of this record class.
    int
    u()
    Returns the value of the u record component.
    int
    v()
    Returns the value of the v record component.

    Methods inherited from class java.lang.Object

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

    • NONE

      public static final LightUV NONE
    • FULLBRIGHT

      public static final LightUV FULLBRIGHT
    • FULL_SKY

      public static final LightUV FULL_SKY
    • FULL_BLOCK

      public static final LightUV FULL_BLOCK
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,LightUV> STREAM_CODEC
  • Constructor Details

    • LightUV

      public LightUV(int packed)
    • LightUV

      public LightUV(int u, int v)
    • LightUV

      public LightUV(int packed, int u, int v)
      Creates an instance of a LightUV record class.
      Parameters:
      packed - the value for the packed record component
      u - the value for the u record component
      v - the value for the v record component
  • Method Details

    • hashCode

      public 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 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. All components in this record class 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.
    • 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
    • packed

      public int packed()
      Returns the value of the packed record component.
      Specified by:
      packed in interface PackedUV
      Returns:
      the value of the packed record component
    • u

      public int u()
      Returns the value of the u record component.
      Specified by:
      u in interface PackedUV
      Returns:
      the value of the u record component
    • v

      public int v()
      Returns the value of the v record component.
      Specified by:
      v in interface PackedUV
      Returns:
      the value of the v record component