public static interface IInventoryProvider.IDeferredInventoryProvider<T> extends IInventoryProvider
IInventoryProvider.IDeferredInventoryProvider<T>, IInventoryProvider.IDirectInventoryProvider| Modifier and Type | Method and Description |
|---|---|
default void |
breakInventories(T data,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Break all the inventories of this
IInventoryProvider. |
default void |
clear(T data)
Empties all the inventories of this
IInventoryProvider. |
MalisisGui |
getGui(T data,
MalisisInventoryContainer container)
Gets the
MalisisGui associated with the MalisisInventory. |
default MalisisInventory[] |
getInventories(T data)
Gets all the
inventories for this IInventoryProvider. |
MalisisInventory |
getInventory(T data)
Gets the default inventory for this provider.
|
MalisisInventory getInventory(T data)
data - the dataMalisisGui getGui(T data, MalisisInventoryContainer container)
MalisisGui associated with the MalisisInventory.data - the datacontainer - the containerdefault MalisisInventory[] getInventories(T data)
inventories for this IInventoryProvider.data - null for TileEntity, ItemStack for Itemdefault void clear(T data)
IInventoryProvider.data - the datadefault void breakInventories(T data, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
IInventoryProvider.data - the dataworld - the worldpos - the pos