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
Modifier and Type Method Description java.lang.ObjectgetSubObject(int index)intgetSubObjectCount()
-
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
java.lang.Object getSubObject(int index)- Parameters:
index- The index, between 0 andgetSubObjectCount().- Throws:
java.lang.RuntimeException- if the index is <0 or >=getSubObjectCount().
-