Package alexiil.mc.lib.attributes.item
Class ItemAttributes
java.lang.Object
alexiil.mc.lib.attributes.item.ItemAttributes
public final class ItemAttributes
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static CombinableAttribute<ItemExtractable>EXTRACTABLEstatic CombinableAttribute<ItemFilter>FILTERMostly intended to be used forItemStack's, notBlock's.static CombinableAttribute<FixedItemInv>FIXED_INVstatic CombinableAttribute<FixedItemInvView>FIXED_INV_VIEWstatic CombinableAttribute<GroupedItemInv>GROUPED_INVstatic CombinableAttribute<GroupedItemInvView>GROUPED_INV_VIEWstatic java.util.List<CombinableAttribute<?>>GROUPED_INVENTORY_BASEDAListof every inventory-type attribute, so:GROUPED_INV_VIEW,GROUPED_INV,INSERTABLE, andEXTRACTABLE.static CombinableAttribute<ItemInsertable>INSERTABLEstatic java.util.List<CombinableAttribute<?>>INVENTORY_BASEDAListof every inventory-type attribute, so:FIXED_INV_VIEW,FIXED_INV,GROUPED_INV_VIEW,GROUPED_INV,INSERTABLE, andEXTRACTABLE. -
Method Summary
Modifier and Type Method Description static voidforEachGroupedInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumeron everyGROUPED_INVENTORY_BASEDattribute.static voidforEachInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumeron everyINVENTORY_BASEDattribute.
-
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
AListof every inventory-type attribute, so:FIXED_INV_VIEW,FIXED_INV,GROUPED_INV_VIEW,GROUPED_INV,INSERTABLE, andEXTRACTABLE. -
GROUPED_INVENTORY_BASED
AListof every inventory-type attribute, so:GROUPED_INV_VIEW,GROUPED_INV,INSERTABLE, andEXTRACTABLE.
-
-
Method Details
-
forEachInv
public static void forEachInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumeron everyINVENTORY_BASEDattribute. -
forEachGroupedInv
public static void forEachGroupedInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumeron everyGROUPED_INVENTORY_BASEDattribute.
-