Package com.viaversion.viaversion.util
Class IdAndData
java.lang.Object
com.viaversion.viaversion.util.IdAndData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static IdAndData
fromRawData
(int rawData) byte
getData()
static int
getData
(int rawData) int
getId()
static int
getId
(int rawData) int
hashCode()
static int
removeData
(int data) void
setData
(int data) void
setId
(int id) int
static int
toRawData
(int id) static int
toRawData
(int id, int data) toString()
withData
(int data)
-
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
-
toRawData
public static int toRawData(int id, int data) -
toRawData
public int toRawData() -
withData
-
getId
public int getId() -
setId
public void setId(int id) -
getData
public byte getData() -
setData
public void setData(int data) -
equals
-
hashCode
public int hashCode() -
toString
-