Package com.comphenix.protocol.wrappers
Class WrappedDataWatcher.WrappedDataWatcherObject
java.lang.Object
com.comphenix.protocol.wrappers.WrappedDataWatcher.WrappedDataWatcherObject
- Enclosing class:
WrappedDataWatcher
Represents a DataWatcherObject in 1.9. In order to register an object,
the serializer must be specified.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWrappedDataWatcherObject(int index, WrappedDataWatcher.Serializer serializer) Creates a new watcher object from an index and serializer.WrappedDataWatcherObject(Object handle) Creates a new watcher object from a NMS handle. -
Method Summary
-
Constructor Details
-
WrappedDataWatcherObject
protected WrappedDataWatcherObject() -
WrappedDataWatcherObject
Creates a new watcher object from a NMS handle.- Parameters:
handle- The handle
-
WrappedDataWatcherObject
Creates a new watcher object from an index and serializer.- Parameters:
index- Indexserializer- Serializer, seeWrappedDataWatcher.Registry
-
-
Method Details
-
getIndex
public int getIndex()Gets this watcher object's index.- Returns:
- The index
-
getSerializer
Gets this watcher object's serializer. Will return null if the serializer was never specified.- Returns:
- The serializer, or null
-
checkSerializer
public void checkSerializer() -
getHandle
-
getHandleType
-
toString
-
equals
-
hashCode
public int hashCode()
-