Package alexiil.mc.lib.attributes.item
Class GroupedItemInvView.ItemInvStatistic
java.lang.Object
alexiil.mc.lib.attributes.item.GroupedItemInvView.ItemInvStatistic
- Enclosing interface:
- GroupedItemInvView
Statistics associated with a single
ItemFilter
in a given inventory.-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The total amount of the given filter.final ItemFilter
final int
The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).final int
The total amount of additional entries that could be added to by this filter. -
Constructor Summary
ConstructorDescriptionItemInvStatistic
(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
-
ItemInvStatistic
-