Package alexiil.mc.lib.attributes.misc
Interface OpenWrapper
- All Known Implementing Classes:
FixedInventoryVanillaWrapper,FixedInventoryViewVanillaWrapper,FixedSidedInventoryVanillaWrapper,GroupedFluidInvFixedWrapper,GroupedFluidInvViewFixedWrapper,GroupedItemInvFixedWrapper,GroupedItemInvViewFixedWrapper,InventoryFixedWrapper,SidedInventoryFixedWrapper
public interface OpenWrapper
An
Object that wraps an object of a different type into some other type. This is generally the inverse of
Convertible.convertTo(Class).-
Method Summary
-
Method Details
-
getWrapped
- Returns:
- The object that this wraps, or null if the wrapped object cannot be converted cleanly without exposing
additional details.
For example LBA's
InventorytoFixedItemInvViewwrapper (FixedInventoryViewVanillaWrapper) implements this to return theInventory, but theSidedInventoryvariant (FixedSidedInventoryVanillaWrapper) returns null, as it is not possible to cleanly open the original inventory without exposing additional slots.
-