Package com.comphenix.protocol.injector
Interface PacketConstructor.Unwrapper
- All Known Implementing Classes:
BukkitUnwrapper
- Enclosing class:
PacketConstructor
public static interface PacketConstructor.Unwrapper
Represents a unwrapper for a constructor parameter.
-
Method Summary
Modifier and TypeMethodDescriptionunwrapItem(Object wrappedObject) Convert the given wrapped object to the equivalent net.minecraft.server object.
-
Method Details
-
unwrapItem
Convert the given wrapped object to the equivalent net.minecraft.server object.Note that we may pass in a class instead of object - in that case, the unwrapper should return the equivalent NMS class.
- Parameters:
wrappedObject- - wrapped object or class.- Returns:
- The equivalent net.minecraft.server object or class.
-