Class Aggregators.Sum

All Implemented Interfaces:
IDescribable, IAggregator<IQuantity,org.openjdk.jmc.common.item.Aggregators.SumConsumer>, IItemConsumerFactory<org.openjdk.jmc.common.item.Aggregators.SumConsumer>
Enclosing class:
Aggregators

public abstract static class Aggregators.Sum extends Aggregators.FieldAggregatorBase<IQuantity,org.openjdk.jmc.common.item.Aggregators.SumConsumer>
  • Constructor Details

  • Method Details

    • newItemConsumer

      public org.openjdk.jmc.common.item.Aggregators.SumConsumer newItemConsumer(IType<IItem> type)
      Parameters:
      type - an item type to get an item consumer for
      Returns:
      a new item consumer for the supplied type
    • getValue

      public IQuantity getValue(org.openjdk.jmc.common.item.Aggregators.SumConsumer consumer)
      Specified by:
      getValue in class Aggregators.MergingAggregator<IQuantity,org.openjdk.jmc.common.item.Aggregators.SumConsumer>