public abstract class AbstractWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
handle |
protected Class<?> |
handleType |
| Constructor and Description |
|---|
AbstractWrapper(Class<?> handleType)
Construct a new NMS wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getHandle()
Retrieves the underlying NMS object.
|
Class<?> |
getHandleType()
Retrieve the type of the handle.
|
int |
hashCode() |
protected void |
setHandle(Object handle)
Set the underlying NMS object.
|
String |
toString() |
public AbstractWrapper(Class<?> handleType)
handleType - - the NMS handle type.protected void setHandle(Object handle)
handle - - the NMS object.IllegalArgumentException - If the handle is NULL.IllegalArgumentException - If the handle is not assignable to getHandleType().public Object getHandle()
public Class<?> getHandleType()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.