Class IdAndData

java.lang.Object
com.viaversion.viaversion.util.IdAndData

public class IdAndData extends Object
  • Constructor Details

    • IdAndData

      public IdAndData(int id)
    • IdAndData

      public IdAndData(int id, int data)
  • Method Details

    • getId

      public static int getId(int rawData)
    • getData

      public static int getData(int rawData)
    • toRawData

      public static int toRawData(int id)
    • removeData

      public static int removeData(int data)
    • fromRawData

      public static IdAndData fromRawData(int rawData)
    • toRawData

      public static int toRawData(int id, int data)
    • toRawData

      public int toRawData()
    • withData

      public IdAndData withData(int data)
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getData

      public byte getData()
    • setData

      public void setData(int data)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object