Uses of Interface
alexiil.mc.lib.attributes.fluid.filter.FluidFilter
Package
Description
The base package for
fluid
management.-
Uses of FluidFilter in alexiil.mc.lib.attributes.fluid
Modifier and TypeFieldDescriptionstatic CombinableAttribute<FluidFilter>
FluidAttributes.FILTER
Mostly intended to be used forItemStack
's, notBlock
's.Modifier and TypeMethodDescriptionSingleFluidTankView.getFilter()
default FluidFilter
FixedFluidInvView.getFilterForTank(int tank)
ExposesFixedFluidInvView.isFluidValidForTank(int, FluidKey)
as a (potentially) readable filter.default FluidFilter
FluidInsertable.getInsertionFilter()
Returns anFluidFilter
to determine ifFluidInsertable.attemptInsertion(FluidVolume, Simulation)
could ever accept a fluid.SingleFluidTank.getInsertionFilter()
Modifier and TypeMethodDescriptiondefault FluidVolume
FluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated.default FluidVolume
FluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SingleFluidTank.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.SingleFluidTank.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FluidVolumeUtil.computeExtraction(FluidVolume inTank, FluidFilter filter, FluidAmount maxAmount)
Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation)
, but without actually modifying an inventory.FluidVolumeUtil.computeExtraction(FluidVolume inTank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount)
Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation)
, but without actually modifying an inventory.GroupedFluidInvView.FluidInvStatistic.emptyOf(FluidFilter filter)
default FluidVolume
FluidExtractable.extract(FluidFilter filter, int maxAmount)
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidFilter, FluidAmount)
.default FluidVolume
FluidExtractable.extract(FluidFilter filter, FluidAmount maxAmount)
default FluidVolume
FixedFluidInv.extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation)
Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolume
FluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.default FluidExtractable
FluidExtractable.filtered(FluidFilter filter)
default FluidInsertable
FluidInsertable.filtered(FluidFilter filter)
default FluidTransferable
FluidTransferable.filtered(FluidFilter filter)
default GroupedFluidInv
GroupedFluidInv.filtered(FluidFilter filter)
LimitedFixedFluidInv.FluidTankLimitRule.filterInserts(FluidFilter filter)
Filters all insertions with the given filter in addition to whatever filters are already present.default int
GroupedFluidInvView.getAmount(FluidFilter filter)
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGroupedFluidInvView.getAmount_F(FluidFilter)
default FluidAmount
GroupedFluidInvView.getAmount_F(FluidFilter filter)
protected abstract FluidAmount
FluidContainerRegistry.FluidFillHandler.getCapacity(FluidFilter filter)
LimitedGroupedFluidInv.getRule(FluidFilter filter)
GroupedFluidInvView.getStatistics(FluidFilter filter)
FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactCursorWithTank(FixedFluidInv inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFixedFluidInv
.FluidInvUtil.interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter)
This is the "interactCursorWithTank" variant that doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactCursorWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the player'sPlayerInventory#getCursorStack()
, or drain the extractable to the cursor stack.FluidInvUtil.interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactCursorWithTank(FluidTransferable inv, net.minecraft.server.network.ServerPlayerEntity player, FluidFilter filter, FluidAmount maximum)
This is the "interactCursorWithTank" variant that takes a singleFluidTransferable
.FluidInvUtil.interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactHandWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)
This is the "interactHandWithTank" variant that takes a singleFixedFluidInv
.FluidInvUtil.interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter)
This is the "interactHandWithTank" variant that doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactHandWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the player'shand
, or drain the extractable to the hand.FluidInvUtil.interactHandWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter)
This is the "interactHandWithTank" variant that takes a singleFluidTransferable
and doesn't limit the maximum amount of fluid moved.FluidInvUtil.interactHandWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, FluidFilter filter, FluidAmount maximum)
This is the "interactHandWithTank" variant that takes a singleFluidTransferable
.FluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the amount of fluid moved.FluidInvUtil.interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks.FluidInvUtil.interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that doesn't limit the amount of fluid moved.FluidInvUtil.interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.FluidInvUtil.interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit the amount moved.FluidInvUtil.interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit the amount of fluid moved.FluidInvUtil.interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
.FluidInvUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that doesn't limit the amount of fluid moved.FluidInvUtil.interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.FluidInvUtil.interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit the amount of fluid moved.FluidInvUtil.interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFluidTransferable
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, int maximum)
Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static FluidVolume
FluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation)
Attempts to move up to the given maximum amount of fluids from theFluidExtractable
to theFluidInsertable
, provided they match the givenFluidFilter
.static void
FluidContainerRegistry.registerFillHandler(net.minecraft.item.Item empty, FluidFilter fluids, boolean isFilterSpecific, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)
static void
FluidContainerRegistry.registerFillHandler(net.minecraft.item.Item empty, FluidFilter fluids, boolean isFilterSpecific, FluidContainerRegistry.FluidFillHandler handler)
Registers a custom fill handler for the given empty item, which always creates filledItemStack
s with differentItem
s to the original.ModifierConstructorDescriptionFluidInvStatistic(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)
-
Uses of FluidFilter in alexiil.mc.lib.attributes.fluid.filter
Modifier and TypeInterfaceDescriptioninterface
Marker interface forFluidFilter
that indicates that object obtaining instances of this might be able to read the real contents.interface
A type ofReadableFluidFilter
that may be resolved at a later time to a fixedReadableFluidFilter
, but which isn't constant over time.Modifier and TypeClassDescriptionclass
AnFluidFilter
over a predefined array ofFluidFilter
's.class
AFluidFilter
that either matches everything (ConstantFluidFilter.ANYTHING
) or matches nothing (ConstantFluidFilter.NOTHING
)class
AnFluidFilter
that only matches on a singleFluidKey
.class
AFluidFilter
that checks to see if the givenFluidInsertable
could have the fluid inserted into it, right now.class
class
class
AFluidFilter
that matches on what type it's based on.static class
static class
static class
class
The default implementation fornegate()
class
Modifier and TypeMethodDescriptionstatic FluidFilter
AggregateFluidFilter.allOf(FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.allOf(List<? extends FluidFilter> filters)
static FluidFilter
AggregateFluidFilter.and(FluidFilter filterA, FluidFilter filterB)
ConstantFluidFilter.and(FluidFilter other)
default FluidFilter
FluidFilter.and(FluidFilter other)
static FluidFilter
AggregateFluidFilter.anyOf(FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.anyOf(List<? extends FluidFilter> filters)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, FluidFilter filterA, FluidFilter filterB)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, List<? extends FluidFilter> filters)
AggregateFluidFilter.getFilter(int index)
ConstantFluidFilter.negate()
default FluidFilter
FluidFilter.negate()
InvertedFluidFilter.negate()
static FluidFilter
AggregateFluidFilter.or(FluidFilter filterA, FluidFilter filterB)
ConstantFluidFilter.or(FluidFilter other)
default FluidFilter
FluidFilter.or(FluidFilter other)
Modifier and TypeMethodDescriptionstatic FluidFilter
AggregateFluidFilter.allOf(FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.and(FluidFilter filterA, FluidFilter filterB)
ConstantFluidFilter.and(FluidFilter other)
default FluidFilter
FluidFilter.and(FluidFilter other)
static FluidFilter
AggregateFluidFilter.anyOf(FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, FluidFilter... filters)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, FluidFilter filterA, FluidFilter filterB)
FluidFilterUtil.decomposeFilter(FluidFilter filter)
Attempts to decompose the given filter down into it's componentFluidKey
's, if it implementsReadableFluidFilter
.FluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set)
Finds the set ofFluidKey
s which are both in the set and match the given filter.FluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set, boolean resolve)
Finds the set ofFluidKey
s which are both in the set and match the given filter.static boolean
FluidFilterUtil.hasIntersection(FluidFilter a, FluidFilter b)
static FluidFilter
AggregateFluidFilter.or(FluidFilter filterA, FluidFilter filterB)
ConstantFluidFilter.or(FluidFilter other)
default FluidFilter
FluidFilter.or(FluidFilter other)
Modifier and TypeMethodDescriptionstatic FluidFilter
AggregateFluidFilter.allOf(List<? extends FluidFilter> filters)
static FluidFilter
AggregateFluidFilter.anyOf(List<? extends FluidFilter> filters)
static FluidFilter
AggregateFluidFilter.combine(AggregateFilterType type, List<? extends FluidFilter> filters)
ModifierConstructorDescriptionAggregateFluidFilter(AggregateFilterType type, FluidFilter... filters)
InvertedFluidFilter(FluidFilter delegate)
-
Uses of FluidFilter in alexiil.mc.lib.attributes.fluid.impl
Modifier and TypeFieldDescriptionFilteredFluidExtractable.filter
FilteredFluidInsertable.filter
FilteredFluidTransferable.filter
protected FluidFilter[]
SimpleLimitedFixedFluidInv.insertionFilters
Modifier and TypeMethodDescriptionAbstractPartialFixedFluidInvView.getFilterForTank(int tank)
CombinedFixedFluidInvView.getFilterForTank(int tank)
DelegatingFixedFluidInv.getFilterForTank(int tank)
EmptyFixedFluidInv.getFilterForTank(int tank)
SimpleFixedFluidInv.getFilterForTank(int tank)
SimpleLimitedFixedFluidInv.getFilterForTank(int tank)
CombinedFluidInsertable.getInsertionFilter()
CombinedGroupedFluidInv.getInsertionFilter()
DelegatingGroupedFluidInv.getInsertionFilter()
EmptyFluidTransferable.getInsertionFilter()
FilteredFluidInsertable.getInsertionFilter()
FilteredFluidTransferable.getInsertionFilter()
RejectingFluidInsertable.getInsertionFilter()
SimpleFixedFluidInv.getInsertionFilter()
SimpleFixedFluidInvInsertable.getInsertionFilter()
Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.getInsertionFilter()
Modifier and TypeMethodDescriptionCombinedFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
CombinedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
DelegatingGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
EmptyFluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
EmptyFluidTransferable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
EmptyGroupedFluidInv.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)
FilteredFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FilteredFluidTransferable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
GroupedFluidInvFixedWrapper.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SimpleFixedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
SimpleFixedFluidInvExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
FilteredFluidExtractable.filtered(FluidFilter filter)
FilteredFluidInsertable.filtered(FluidFilter filter)
FilteredFluidTransferable.filtered(FluidFilter filter)
SimpleLimitedGroupedFluidInv.getRule(FluidFilter filter)
CombinedGroupedFluidInvView.getStatistics(FluidFilter filter)
DelegatingGroupedFluidInv.getStatistics(FluidFilter filter)
EmptyGroupedFluidInv.getStatistics(FluidFilter filter)
GroupedFluidInvViewFixedWrapper.getStatistics(FluidFilter filter)
ModifierConstructorDescriptionFilteredFluidExtractable(FluidExtractable real, FluidFilter filter)
FilteredFluidInsertable(FluidInsertable real, FluidFilter filter)
FilteredFluidTransferable(FluidTransferable real, FluidFilter filter)
-
Uses of FluidFilter in alexiil.mc.lib.attributes.fluid.item
Modifier and TypeMethodDescriptionItemBasedSingleFluidInv.getInsertionFilter()
TheFluidFilter
to limit what may be inserted.Modifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)
ItemBasedSingleFluidInv.getStatistics(FluidFilter filter)
FluidExtractable.attemptExtraction(FluidFilter, FluidAmount, Simulation)
.