Package alexiil.mc.lib.attributes.fluid
Class FluidAttributes
java.lang.Object
alexiil.mc.lib.attributes.fluid.FluidAttributes
public final class FluidAttributes
extends java.lang.Object
Central storage for fluid
Attribute
instances.-
Field Summary
Fields Modifier and Type Field Description static CombinableAttribute<FluidExtractable>
EXTRACTABLE
static CombinableAttribute<FluidFilter>
FILTER
Mostly intended to be used forItemStack
's, notBlock
's.static CombinableAttribute<FixedFluidInv>
FIXED_INV
static CombinableAttribute<FixedFluidInvView>
FIXED_INV_VIEW
static CombinableAttribute<GroupedFluidInv>
GROUPED_INV
static CombinableAttribute<GroupedFluidInvView>
GROUPED_INV_VIEW
static java.util.List<CombinableAttribute<?>>
GROUPED_INVENTORY_BASED
AList
of every inventory-type attribute, so:GROUPED_INV_VIEW
,GROUPED_INV
,INSERTABLE
, andEXTRACTABLE
.static CombinableAttribute<FluidInsertable>
INSERTABLE
static java.util.List<CombinableAttribute<?>>
INVENTORY_BASED
AList
of 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 void
forEachGroupedInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)
Runs the givenConsumer
on everyGROUPED_INVENTORY_BASED
attribute.static void
forEachInv(java.util.function.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
public static void forEachInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumer
on everyINVENTORY_BASED
attribute. -
forEachGroupedInv
public static void forEachGroupedInv(java.util.function.Consumer<? super CombinableAttribute<?>> consumer)Runs the givenConsumer
on everyGROUPED_INVENTORY_BASED
attribute.
-