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 intamountDeprecated.Replaced byamount_Finstead.FluidAmountamount_FThe total amount of the given filter.FluidFilterfilterintspaceAddableDeprecated.Replaced byspaceAddable_Finstead.FluidAmountspaceAddable_FThe total amount of space that the given filter can be added to (where an inventory already contains a partial stack).intspaceTotalDeprecated.Replaced byspaceTotal_Finstead.FluidAmountspaceTotal_FThe 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.FluidInvStatisticemptyOf(FluidFilter filter)
-
Field Details
-
filter
-
amount
@Deprecated public final int amountDeprecated.Replaced byamount_Finstead.The total amount of the given filter. -
amount_F
The total amount of the given filter. -
spaceAddable
@Deprecated public final int spaceAddableDeprecated.Replaced byspaceAddable_Finstead.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_Finstead.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_ONEif 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.FluidInvStatisticthat has 0's foramount,spaceAddable, andspaceTotal
-