Class GroupedItemInvView.ItemInvStatistic

java.lang.Object
alexiil.mc.lib.attributes.item.GroupedItemInvView.ItemInvStatistic
Enclosing interface:
GroupedItemInvView

public static final class GroupedItemInvView.ItemInvStatistic
extends java.lang.Object
Statistics associated with a single ItemFilter in a given inventory.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int amount
    The total amount of the given filter.
    ItemFilter filter  
    int spaceAddable
    The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).
    int spaceTotal
    The total amount of additional entries that could be added to by this filter.
  • Constructor Summary

    Constructors 
    Constructor Description
    ItemInvStatistic​(ItemFilter filter, int amount, int spaceAddable, int spaceTotal)  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • filter

      public final ItemFilter filter
    • amount

      public final int amount
      The total amount of the given filter.
    • spaceAddable

      public final int spaceAddable
      The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).
    • spaceTotal

      public final int spaceTotal
      The total amount of additional entries that could be added to by this filter. This might be -1 if the filter isn't specific enough to properly calculate this value.
  • Constructor Details