Uses of Interface
alexiil.mc.lib.attributes.item.filter.ItemFilter
Package | Description |
---|---|
alexiil.mc.lib.attributes.item | |
alexiil.mc.lib.attributes.item.entity | |
alexiil.mc.lib.attributes.item.filter | |
alexiil.mc.lib.attributes.item.impl |
-
Uses of ItemFilter in alexiil.mc.lib.attributes.item
Fields in alexiil.mc.lib.attributes.item declared as ItemFilter Modifier and Type Field Description ItemFilter
GroupedItemInvView.ItemInvStatistic. filter
Fields in alexiil.mc.lib.attributes.item with type parameters of type ItemFilter Modifier and Type Field Description static CombinableAttribute<ItemFilter>
ItemAttributes. FILTER
Mostly intended to be used forItemStack
's, notBlock
's.Methods in alexiil.mc.lib.attributes.item that return ItemFilter Modifier and Type Method Description ItemFilter
SingleItemSlotView. getFilter()
default ItemFilter
FixedItemInv.ModifiableFixedItemInv. getFilterForSlot(int slot)
Note that this filter should only compare theItem
contained inItemStack
's, because callers can always modify any other properties (like count or NBT) themselves.default ItemFilter
FixedItemInvView. getFilterForSlot(int slot)
ExposesFixedItemInvView.isItemValidForSlot(int, ItemStack)
as a (potentially) readable filter.default ItemFilter
ItemInsertable. getInsertionFilter()
Returns anItemFilter
to determine ifItemInsertable.attemptInsertion(ItemStack, Simulation)
will accept a stack.ItemFilter
SingleItemSlot. getInsertionFilter()
Methods in alexiil.mc.lib.attributes.item with parameters of type ItemFilter Modifier and Type Method Description net.minecraft.item.ItemStack
ItemExtractable. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
SingleItemSlot. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
default net.minecraft.item.ItemStack
ItemExtractable. extract(ItemFilter filter, int maxAmount)
static net.minecraft.item.ItemStack
ItemInvUtil. extractSingle(FixedItemInv inv, int slot, ItemFilter filter, net.minecraft.item.ItemStack toAddWith, int maxAmount, Simulation simulation)
Deprecated.Because this has been moved toFixedItemInv.extractStack(int, ItemFilter, ItemStack, int, Simulation)
.default net.minecraft.item.ItemStack
FixedItemInv. extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
Attempts to extract part of the stack that is held in the given slot.default GroupedItemInv
GroupedItemInv. filtered(ItemFilter filter)
default ItemExtractable
ItemExtractable. filtered(ItemFilter filter)
default ItemInsertable
ItemInsertable. filtered(ItemFilter filter)
default ItemTransferable
ItemTransferable. filtered(ItemFilter filter)
LimitedFixedItemInv.ItemSlotLimitRule
LimitedFixedItemInv.ItemSlotLimitRule. filterExtracts(ItemFilter filter)
Filters all extractions with the given filter in addition to whatever filters are already present.LimitedFixedItemInv.ItemSlotLimitRule
LimitedFixedItemInv.ItemSlotLimitRule. filterInserts(ItemFilter filter)
Filters all insertions with the given filter in addition to whatever filters are already present.default int
GroupedItemInvView. getAmount(ItemFilter filter)
LimitedGroupedItemInv.ItemLimitRule
LimitedGroupedItemInv. getRule(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
GroupedItemInvView. getStatistics(ItemFilter filter)
static int
ItemInvUtil. move(ItemExtractable from, ItemInsertable to, ItemFilter filter, int maximum)
Attempts to move up to the given maximum number of items from theItemExtractable
to theItemInsertable
, provided they match the givenItemFilter
.static int
ItemInvUtil. move(ItemExtractable from, ItemInsertable to, ItemFilter filter, int maximum, Simulation simulation)
Attempts to move up to the given maximum number of items from theItemExtractable
to theItemInsertable
, provided they match the givenItemFilter
.static ItemInvUtil.MultiMoveResult
ItemInvUtil. moveMultiple(ItemExtractable from, ItemInsertable to, ItemFilter filter, int maxStacks, int maxTotal)
Attempts to move a given number of stacks from theItemExtractable
to theItemInsertable
.Constructors in alexiil.mc.lib.attributes.item with parameters of type ItemFilter Constructor Description ItemInvStatistic(ItemFilter filter, int amount, int spaceAddable, int spaceTotal)
-
Uses of ItemFilter in alexiil.mc.lib.attributes.item.entity
Methods in alexiil.mc.lib.attributes.item.entity with parameters of type ItemFilter Modifier and Type Method Description net.minecraft.item.ItemStack
ItemExtractableProjectileEntity. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
ItemTransferableItemEntity. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
-
Uses of ItemFilter in alexiil.mc.lib.attributes.item.filter
Subinterfaces of ItemFilter in alexiil.mc.lib.attributes.item.filter Modifier and Type Interface Description interface
ReadableItemFilter
Marker interface forItemFilter
that indicates that object obtaining instances of this might be able to read the real contents.interface
ResolvableItemFilter
A type ofReadableItemFilter
that may be resolved at a later time to a fixedReadableItemFilter
, but which isn't constant over time.Classes in alexiil.mc.lib.attributes.item.filter that implement ItemFilter Modifier and Type Class Description class
AggregateItemFilter
AnItemFilter
over a predefined array ofItemFilter
's.class
ConstantItemFilter
class
ExactItemFilter
AnItemFilter
that only matches on a singleItem
.class
ExactItemSetFilter
class
ExactItemStackFilter
AnItemFilter
that only matches on a singleItemStack
, usingItemStackUtil.areEqualIgnoreAmounts(ItemStack, ItemStack)
.class
InvertedItemFilter
class
ItemClassFilter
AReadableItemFilter
that only matches items that areClass.isInstance(Object)
of a certainClass
, and are NOTempty
.class
ItemInsertableFilter
AnItemFilter
that checks to see if the givenItemInsertable
could have the stack inserted into it, right now.class
ItemTagFilter
Fields in alexiil.mc.lib.attributes.item.filter declared as ItemFilter Modifier and Type Field Description ItemFilter
InvertedItemFilter. delegate
ItemFilter
ItemFilter.ItemFilterAsPredicate. filter
Methods in alexiil.mc.lib.attributes.item.filter that return ItemFilter Modifier and Type Method Description static ItemFilter
AggregateItemFilter. allOf(ItemFilter... filters)
static ItemFilter
AggregateItemFilter. allOf(java.util.List<? extends ItemFilter> filters)
static ItemFilter
AggregateItemFilter. and(ItemFilter filterA, ItemFilter filterB)
ItemFilter
ConstantItemFilter. and(ItemFilter other)
default ItemFilter
ItemFilter. and(ItemFilter other)
static ItemFilter
AggregateItemFilter. anyOf(ItemFilter... filters)
static ItemFilter
AggregateItemFilter. anyOf(java.util.List<? extends ItemFilter> filters)
static ItemFilter
AggregateItemFilter. anyOf(net.minecraft.item.Item... items)
static ItemFilter
AggregateItemFilter. anyOf(net.minecraft.item.ItemStack... stacks)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, ItemFilter... filters)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, ItemFilter filterA, ItemFilter filterB)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, java.util.List<? extends ItemFilter> filters)
ItemFilter
AggregateItemFilter. getFilter(int index)
ItemFilter
ConstantItemFilter. negate()
ItemFilter
InvertedItemFilter. negate()
default ItemFilter
ItemFilter. negate()
static ItemFilter
AggregateItemFilter. or(ItemFilter filterA, ItemFilter filterB)
ItemFilter
ConstantItemFilter. or(ItemFilter other)
default ItemFilter
ItemFilter. or(ItemFilter other)
Methods in alexiil.mc.lib.attributes.item.filter that return types with arguments of type ItemFilter Modifier and Type Method Description java.util.Iterator<ItemFilter>
AggregateItemFilter. iterator()
Methods in alexiil.mc.lib.attributes.item.filter with parameters of type ItemFilter Modifier and Type Method Description static ItemFilter
AggregateItemFilter. allOf(ItemFilter... filters)
static ItemFilter
AggregateItemFilter. and(ItemFilter filterA, ItemFilter filterB)
ItemFilter
ConstantItemFilter. and(ItemFilter other)
default ItemFilter
ItemFilter. and(ItemFilter other)
static ItemFilter
AggregateItemFilter. anyOf(ItemFilter... filters)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, ItemFilter... filters)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, ItemFilter filterA, ItemFilter filterB)
static int
ItemStackFilterUtil. findMaximumStackAmount(ItemFilter filter)
Attempts to find the maximum stack amount from all of the stacks in the filter.static ItemFilter
AggregateItemFilter. or(ItemFilter filterA, ItemFilter filterB)
ItemFilter
ConstantItemFilter. or(ItemFilter other)
default ItemFilter
ItemFilter. or(ItemFilter other)
Method parameters in alexiil.mc.lib.attributes.item.filter with type arguments of type ItemFilter Modifier and Type Method Description static ItemFilter
AggregateItemFilter. allOf(java.util.List<? extends ItemFilter> filters)
static ItemFilter
AggregateItemFilter. anyOf(java.util.List<? extends ItemFilter> filters)
static ItemFilter
AggregateItemFilter. combine(AggregateFilterType type, java.util.List<? extends ItemFilter> filters)
Constructors in alexiil.mc.lib.attributes.item.filter with parameters of type ItemFilter Constructor Description AggregateItemFilter(AggregateFilterType type, ItemFilter... filters)
InvertedItemFilter(ItemFilter delegate)
ItemFilterAsPredicate(ItemFilter filter)
-
Uses of ItemFilter in alexiil.mc.lib.attributes.item.impl
Fields in alexiil.mc.lib.attributes.item.impl declared as ItemFilter Modifier and Type Field Description protected ItemFilter[]
SimpleLimitedFixedItemInv. extractionFilters
ItemFilter
FilteredItemExtractable. filter
ItemFilter
FilteredItemInsertable. filter
ItemFilter
FilteredItemTransferable. filter
protected ItemFilter[]
SimpleLimitedFixedItemInv. insertionFilters
Methods in alexiil.mc.lib.attributes.item.impl that return ItemFilter Modifier and Type Method Description ItemFilter
AbstractPartialFixedItemInvView. getFilterForSlot(int slot)
ItemFilter
CombinedFixedItemInvView. getFilterForSlot(int slot)
ItemFilter
DelegatingFixedItemInv. getFilterForSlot(int slot)
ItemFilter
EmptyFixedItemInv. getFilterForSlot(int slot)
ItemFilter
FullFixedItemInv. getFilterForSlot(int slot)
ItemFilter
SimpleLimitedFixedItemInv. getFilterForSlot(int slot)
ItemFilter
CombinedGroupedItemInv. getInsertionFilter()
ItemFilter
CombinedItemInsertable. getInsertionFilter()
ItemFilter
DelegatingGroupedItemInv. getInsertionFilter()
ItemFilter
EmptyGroupedItemInv. getInsertionFilter()
ItemFilter
EmptyItemTransferable. getInsertionFilter()
ItemFilter
FilteredItemInsertable. getInsertionFilter()
ItemFilter
FullFixedItemInv. getInsertionFilter()
ItemFilter
RejectingItemInsertable. getInsertionFilter()
ItemFilter
SimpleFixedItemInvInsertable. getInsertionFilter()
Deprecated.ItemFilter
SimpleLimitedGroupedItemInv. getInsertionFilter()
Methods in alexiil.mc.lib.attributes.item.impl with parameters of type ItemFilter Modifier and Type Method Description net.minecraft.item.ItemStack
CombinedGroupedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
CombinedItemExtractable. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingGroupedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
DirectFixedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyGroupedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyItemExtractable. attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
EmptyItemTransferable. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemExtractable. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FilteredItemTransferable. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
FullFixedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
GroupedItemInvFixedWrapper. attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleFixedItemInvExtractable. attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)
Deprecated.net.minecraft.item.ItemStack
SimpleGroupedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedGroupedItemInv. attemptExtraction(ItemFilter filter, int maxAmount, Simulation simulation)
net.minecraft.item.ItemStack
DelegatingFixedItemInv. extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
net.minecraft.item.ItemStack
SimpleLimitedFixedItemInv. extractStack(int slot, ItemFilter filter, net.minecraft.item.ItemStack mergeWith, int maxCount, Simulation simulation)
ItemExtractable
FilteredItemExtractable. filtered(ItemFilter filter)
ItemInsertable
FilteredItemInsertable. filtered(ItemFilter filter)
ItemTransferable
FilteredItemTransferable. filtered(ItemFilter filter)
int
CombinedGroupedItemInvView. getAmount(ItemFilter filter)
int
EmptyGroupedItemInv. getAmount(ItemFilter filter)
LimitedGroupedItemInv.ItemLimitRule
SimpleLimitedGroupedItemInv. getRule(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
CombinedGroupedItemInvView. getStatistics(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
DelegatingGroupedItemInv. getStatistics(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
DirectFixedItemInv. getStatistics(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
EmptyGroupedItemInv. getStatistics(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
GroupedItemInvViewFixedWrapper. getStatistics(ItemFilter filter)
GroupedItemInvView.ItemInvStatistic
SimpleGroupedItemInv. getStatistics(ItemFilter filter)
Constructors in alexiil.mc.lib.attributes.item.impl with parameters of type ItemFilter Constructor Description FilteredItemExtractable(ItemExtractable real, ItemFilter filter)
FilteredItemInsertable(ItemInsertable real, ItemFilter filter)
FilteredItemTransferable(ItemTransferable real, ItemFilter filter)