Package com.comphenix.protocol.wrappers
Class AbstractWrapper
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
- Direct Known Subclasses:
WrappedAttribute,WrappedAttributeModifier,WrappedBlockData,WrappedChatComponent,WrappedChunkCoordinate,WrappedDataWatcher,WrappedDataWatcher.Serializer,WrappedEnumEntityUseAction,WrappedGameProfile,WrappedIntHashMap,WrappedServerPing,WrappedSignedProperty,WrappedStatistic,WrappedVillagerData,WrappedWatchableObject
Represents a wrapper for an NMS object.
- Author:
- Kristian
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
handle
-
handleType
-
-
Constructor Details
-
AbstractWrapper
Construct a new NMS wrapper.- Parameters:
handleType- - the NMS handle type.
-
-
Method Details
-
setHandle
Set the underlying NMS object.- Parameters:
handle- - the NMS object.- Throws:
IllegalArgumentException- If the handle is NULL.IllegalArgumentException- If the handle is not assignable togetHandleType().
-
getHandle
Retrieves the underlying NMS object.- Returns:
- The underlying NMS object.
-
getHandleType
Retrieve the type of the handle.- Returns:
- The type of the handle.
-
equals
-
hashCode
public int hashCode() -
toString
-