Package alexiil.mc.lib.attributes.fluid
Class GroupedFluidInvView.FluidInvStatistic
java.lang.Object
alexiil.mc.lib.attributes.fluid.GroupedFluidInvView.FluidInvStatistic
- Enclosing interface:
- GroupedFluidInvView
public static final class GroupedFluidInvView.FluidInvStatistic
extends java.lang.Object
Statistics associated with a single
FluidFilter
in a given inventory.-
Field Summary
Fields Modifier and Type Field Description int
amount
Deprecated.Replaced byamount_F
instead.FluidAmount
amount_F
The total amount of the given filter.FluidFilter
filter
int
spaceAddable
Deprecated.Replaced byspaceAddable_F
instead.FluidAmount
spaceAddable_F
The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).int
spaceTotal
Deprecated.Replaced byspaceTotal_F
instead.FluidAmount
spaceTotal_F
The total amount of additional entries that could be added to by this filter. -
Constructor Summary
Constructors Constructor Description FluidInvStatistic(FluidFilter filter, int amount, int spaceAddable, int spaceTotal)
Deprecated.FluidInvStatistic(FluidFilter filter, FluidAmount amount, FluidAmount spaceAddable, FluidAmount spaceTotal)
-
Method Summary
Modifier and Type Method Description static GroupedFluidInvView.FluidInvStatistic
emptyOf(FluidFilter filter)
-
Field Details
-
filter
-
amount
@Deprecated public final int amountDeprecated.Replaced byamount_F
instead.The total amount of the given filter. -
amount_F
The total amount of the given filter. -
spaceAddable
@Deprecated public final int spaceAddableDeprecated.Replaced byspaceAddable_F
instead.The total amount of space that the given filter can be added to (where an inventory already contains a partial stack). -
spaceAddable_F
The total amount of space that the given filter can be added to (where an inventory already contains a partial stack). -
spaceTotal
@Deprecated public final int spaceTotalDeprecated.Replaced byspaceTotal_F
instead.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. -
spaceTotal_F
The total amount of additional entries that could be added to by this filter. This might beFluidAmount.NEGATIVE_ONE
if the filter isn't specific enough to properly calculate this value.
-
-
Constructor Details
-
FluidInvStatistic
@Deprecated public FluidInvStatistic(FluidFilter filter, int amount, int spaceAddable, int spaceTotal)Deprecated. -
FluidInvStatistic
public FluidInvStatistic(FluidFilter filter, FluidAmount amount, FluidAmount spaceAddable, FluidAmount spaceTotal)
-
-
Method Details
-
emptyOf
- Returns:
- A new
GroupedFluidInvView.FluidInvStatistic
that has 0's foramount
,spaceAddable
, andspaceTotal
-