Package alexiil.mc.lib.attributes.fluid
Class GroupedFluidInvView.FluidInvStatistic
java.lang.Object
alexiil.mc.lib.attributes.fluid.GroupedFluidInvView.FluidInvStatistic
- Enclosing interface:
- GroupedFluidInvView
Statistics associated with a single
FluidFilter
in a given inventory.-
Field Summary
Modifier and TypeFieldDescriptionfinal int
Deprecated, for removal: This API element is subject to removal in a future version.final FluidAmount
The total amount of the given filter.final FluidFilter
final int
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byspaceAddable_F
instead.final FluidAmount
The total amount of space that the given filter can be added to (where an inventory already contains a partial stack).final int
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byspaceTotal_F
instead.final FluidAmount
The total amount of additional entries that could be added to by this filter. -
Constructor Summary
ConstructorDescriptionFluidInvStatistic
(FluidFilter filter, int amount, int spaceAddable, int spaceTotal) Deprecated, for removal: This API element is subject to removal in a future version.FluidInvStatistic
(FluidFilter filter, FluidAmount amount, FluidAmount spaceAddable, FluidAmount spaceTotal) -
Method Summary
-
Field Details
-
filter
-
amount
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byamount_F
instead.The total amount of the given filter. -
amount_F
The total amount of the given filter. -
spaceAddable
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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(since="0.6.0", forRemoval=true) public FluidInvStatistic(FluidFilter filter, int amount, int spaceAddable, int spaceTotal) Deprecated, for removal: This API element is subject to removal in a future version. -
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
-
amount_F
instead.