Class DataWatcherItem
java.lang.Object
me.neznamy.tab.platforms.bukkit.nms.datawatcher.DataWatcherItem
-
Constructor Summary
ConstructorsConstructorDescriptionDataWatcherItem(DataWatcherObject type, Object value) Constructs new instance of the object with given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic DataWatcherItemReturns and instance of this class from given NMS itemgetType()getValue()
-
Constructor Details
-
DataWatcherItem
Constructs new instance of the object with given parameters- Parameters:
type- value typevalue- value
-
-
Method Details
-
fromNMS
Returns and instance of this class from given NMS item- Parameters:
nmsItem- NMS item- Returns:
- instance of this class with same data
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-
getType
-
getValue
-