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

    Modifier and Type
    Method
    Description
     
  • Method Details

    • getWrapped

      @Nullable Object 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 Inventory to FixedItemInvView wrapper (FixedInventoryViewVanillaWrapper) implements this to return the Inventory, but the SidedInventory variant (FixedSidedInventoryVanillaWrapper) returns null, as it is not possible to cleanly open the original inventory without exposing additional slots.