Package alexiil.mc.lib.attributes.misc
Interface Combined
- All Known Implementing Classes:
AbstractCombined,CombinedFixedFluidInv,CombinedFixedFluidInvView,CombinedFixedItemInv,CombinedFixedItemInv.OfCopying,CombinedFixedItemInv.OfModifiable,CombinedFixedItemInvView,CombinedFluidExtractable,CombinedFluidInsertable,CombinedGroupedFluidInv,CombinedGroupedFluidInvView,CombinedGroupedItemInv,CombinedGroupedItemInvView,CombinedItemExtractable,CombinedItemInsertable
public interface Combined
An
Object that combines several sub objects of one type into a single object of the same type. This is
generally the inverse of AttributeCombiner.combine(java.util.List).-
Method Summary
-
Method Details
-
getSubObjectCount
int getSubObjectCount()- Returns:
- The number of sub-objects that this combines to make. May return -1 if this cannot easily expose the sub-objects cleanly.
-
getSubObject
- Parameters:
index- The index, between 0 andgetSubObjectCount().- Throws:
RuntimeException- if the index is <0 or >=getSubObjectCount().
-