Package alexiil.mc.lib.attributes.item
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
-
Field Details
-
filter
-
amount
public final int amountThe total amount of the given filter. -
spaceAddable
public final int spaceAddableThe total amount of space that the given filter can be added to (where an inventory already contains a partial stack). -
spaceTotal
public final int spaceTotalThe 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