Package com.comphenix.protocol.wrappers
Class AbstractWrapper
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
- Direct Known Subclasses:
IdCodecWrapper,IdCodecWrapper.Entry,LegacyDataWatcher,LegacyServerPing,ProtocolInfoWrapper,WrappedAttribute,WrappedAttributeModifier,WrappedBlockData,WrappedChatComponent,WrappedCodec,WrappedComponentStyle,WrappedDataResult,WrappedDataValue,WrappedDataWatcher.Serializer,WrappedDynamicOps,WrappedEnumEntityUseAction,WrappedGameProfile,WrappedIntHashMap,WrappedLevelChunkData.BlockEntityInfo,WrappedLevelChunkData.ChunkData,WrappedLevelChunkData.LightData,WrappedMessageSignature,WrappedNumberFormat,WrappedProfilePublicKey,WrappedProfilePublicKey.WrappedProfileKeyData,WrappedRegistrable,WrappedRemoteChatSessionData,WrappedSaltedSignature,WrappedSignedProperty,WrappedStatistic,WrappedStreamCodec,WrappedTeamParameters,WrappedVillagerData,WrappedWatchableObject
Represents a wrapper for an NMS object.
-
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
-