Class CombinedGroupedFluidInvView
java.lang.Object
alexiil.mc.lib.attributes.misc.AbstractCombined<GroupedFluidInvView>
alexiil.mc.lib.attributes.fluid.impl.CombinedGroupedFluidInvView
- All Implemented Interfaces:
 GroupedFluidInvView,Combined
- Direct Known Subclasses:
 CombinedGroupedFluidInv
public class CombinedGroupedFluidInvView extends AbstractCombined<GroupedFluidInvView> implements GroupedFluidInvView
- 
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvView
GroupedFluidInvView.FluidInvStatistic - 
Field Summary
Fields Modifier and Type Field Description protected java.util.List<? extends GroupedFluidInvView>inventories - 
Constructor Summary
Constructors Constructor Description CombinedGroupedFluidInvView(java.util.List<? extends GroupedFluidInvView> inventories) - 
Method Summary
Modifier and Type Method Description ListenerTokenaddListener_F(FluidInvAmountChangeListener_F listener, ListenerRemovalToken removalToken)Adds the given listener to this inventory, such that theFluidInvAmountChangeListener.onChange(GroupedFluidInvView, FluidKey, int, int)will be called every time that this inventory changes.GroupedFluidInvView.FluidInvStatisticgetStatistics(FluidFilter filter)java.util.Set<FluidKey>getStoredFluids()FluidAmountgetTotalCapacity_F()Methods inherited from class alexiil.mc.lib.attributes.misc.AbstractCombined
equals, getSubObject, getSubObjectCount, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvView
addListener, getAmount, getAmount, getAmount_F, getAmount_F, getCapacity, getCapacity_F, getGroupedView, getSpace, getSpace_F, getStatistics, getTotalCapacity 
- 
Field Details
 - 
Constructor Details
 - 
Method Details
- 
getStatistics
- Specified by:
 getStatisticsin interfaceGroupedFluidInvView- Parameters:
 filter- The filter to check on.- Returns:
 - Statistics about the currently stored amount, capacity, and space for everything that matches the given filter.
 
 - 
getStoredFluids
- Specified by:
 getStoredFluidsin interfaceGroupedFluidInvView- Returns:
 - a set containing all of the 
FluidKey's that are stored in the inventory. 
 - 
getTotalCapacity_F
- Specified by:
 getTotalCapacity_Fin interfaceGroupedFluidInvView- Returns:
 - The total capacity for every 
FluidKeythat can be stored in this inventory.NOTE: This value might not be equal to the sum of
GroupedFluidInvView.getCapacity(FluidKey)overGroupedFluidInvView.getStoredFluids()! 
 - 
addListener_F
public ListenerToken addListener_F(FluidInvAmountChangeListener_F listener, ListenerRemovalToken removalToken)Description copied from interface:GroupedFluidInvViewAdds the given listener to this inventory, such that theFluidInvAmountChangeListener.onChange(GroupedFluidInvView, FluidKey, int, int)will be called every time that this inventory changes. However if this inventory doesn't support listeners then this will return a nulltoken.- Specified by:
 addListener_Fin interfaceGroupedFluidInvViewremovalToken- A token that will be called whenever the given listener is removed from this inventory (or if this inventory itself is unloaded or otherwise invalidated).- Returns:
 - A token that represents the listener, or null if the listener could not be added.
 
 
 -