Package alexiil.mc.lib.attributes.item
Class ItemAttributes
java.lang.Object
alexiil.mc.lib.attributes.item.ItemAttributes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CombinableAttribute<ItemExtractable>
static final CombinableAttribute<ItemFilter>
Mostly intended to be used forItemStack
's, notBlock
's.static final CombinableAttribute<FixedItemInv>
static final CombinableAttribute<FixedItemInvView>
static final CombinableAttribute<GroupedItemInv>
static final CombinableAttribute<GroupedItemInvView>
static final List<CombinableAttribute<?>>
AList
of every inventory-type attribute, so:GROUPED_INV_VIEW
,GROUPED_INV
,INSERTABLE
, andEXTRACTABLE
.static final CombinableAttribute<ItemInsertable>
static final List<CombinableAttribute<?>>
AList
of every inventory-type attribute, so:FIXED_INV_VIEW
,FIXED_INV
,GROUPED_INV_VIEW
,GROUPED_INV
,INSERTABLE
, andEXTRACTABLE
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
forEachGroupedInv
(Consumer<? super CombinableAttribute<?>> consumer) Runs the givenConsumer
on everyGROUPED_INVENTORY_BASED
attribute.static void
forEachInv
(Consumer<? super CombinableAttribute<?>> consumer) Runs the givenConsumer
on everyINVENTORY_BASED
attribute.
-
Field Details
-
FIXED_INV_VIEW
-
FIXED_INV
-
GROUPED_INV_VIEW
-
GROUPED_INV
-
INSERTABLE
-
EXTRACTABLE
-
FILTER
Mostly intended to be used forItemStack
's, notBlock
's. (As this interface doesn't really make much sense when applied to block's alone, however it makes much more sense in pipe input or extraction filters). -
INVENTORY_BASED
AList
of every inventory-type attribute, so:FIXED_INV_VIEW
,FIXED_INV
,GROUPED_INV_VIEW
,GROUPED_INV
,INSERTABLE
, andEXTRACTABLE
. -
GROUPED_INVENTORY_BASED
AList
of every inventory-type attribute, so:GROUPED_INV_VIEW
,GROUPED_INV
,INSERTABLE
, andEXTRACTABLE
.
-
-
Method Details
-
forEachInv
Runs the givenConsumer
on everyINVENTORY_BASED
attribute. -
forEachGroupedInv
Runs the givenConsumer
on everyGROUPED_INVENTORY_BASED
attribute.
-