Class ChemicalHelpers
java.lang.Object
org.cyclops.integratedmekanismics.core.ChemicalHelpers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,
Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areChemicalStackEqual
(mekanism.api.chemical.ChemicalStack<?> stackA, mekanism.api.chemical.ChemicalStack<?> stackB, boolean checkChemical, boolean checkAmount) protected static int
getChemicalStackMatchFlags
(boolean checkChemical, boolean checkAmount) static Stream<mekanism.api.chemical.ChemicalStack<?>>
getChemicalTagValues
(String name) Retrieves a Stream of chemicals that are registered to this tag name.static net.minecraftforge.registries.ForgeRegistry<mekanism.api.chemical.Chemical>
getStackRegistry
(mekanism.api.chemical.ChemicalStack<?> instance) static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,
Integer> matchAll
(long amount, boolean exactAmount) static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,
Integer> matchChemicalStack
(mekanism.api.chemical.ChemicalStack<?> chemicalStack, boolean checkChemical, boolean checkAmount, boolean blacklist, boolean exactAmount) static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,
Integer> matchChemicalStacks
(org.cyclops.integrateddynamics.api.evaluate.variable.IValueTypeListProxy<ValueObjectTypeChemicalStack, ValueObjectTypeChemicalStack.ValueChemicalStack> chemicalStacks, boolean checkChemical, boolean checkAmount, boolean blacklist, long amount, boolean exactAmount) static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,
Integer> matchPredicate
(org.cyclops.integrateddynamics.api.part.PartTarget partTarget, org.cyclops.integrateddynamics.api.evaluate.operator.IOperator predicate, long amount, boolean exactAmount) static mekanism.api.chemical.ChemicalStack<?>
prototypeWithCount
(mekanism.api.chemical.ChemicalStack<?> prototype, long count) Helper function to get a copy of the given chemical stack with the given amount.
-
Field Details
-
BUCKET_VOLUME
public static final long BUCKET_VOLUME- See Also:
-
MATCH_NONE
public static final org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,Integer> MATCH_NONE
-
-
Constructor Details
-
ChemicalHelpers
public ChemicalHelpers()
-
-
Method Details
-
getStackRegistry
public static net.minecraftforge.registries.ForgeRegistry<mekanism.api.chemical.Chemical> getStackRegistry(mekanism.api.chemical.ChemicalStack<?> instance) -
matchAll
public static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,Integer> matchAll(long amount, boolean exactAmount) -
getChemicalStackMatchFlags
protected static int getChemicalStackMatchFlags(boolean checkChemical, boolean checkAmount) -
matchChemicalStack
public static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,Integer> matchChemicalStack(mekanism.api.chemical.ChemicalStack<?> chemicalStack, boolean checkChemical, boolean checkAmount, boolean blacklist, boolean exactAmount) -
matchChemicalStacks
public static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,Integer> matchChemicalStacks(org.cyclops.integrateddynamics.api.evaluate.variable.IValueTypeListProxy<ValueObjectTypeChemicalStack, ValueObjectTypeChemicalStack.ValueChemicalStack> chemicalStacks, boolean checkChemical, boolean checkAmount, boolean blacklist, long amount, boolean exactAmount) -
matchPredicate
public static org.cyclops.integratedtunnels.core.predicate.IngredientPredicate<mekanism.api.chemical.ChemicalStack<?>,Integer> matchPredicate(org.cyclops.integrateddynamics.api.part.PartTarget partTarget, org.cyclops.integrateddynamics.api.evaluate.operator.IOperator predicate, long amount, boolean exactAmount) -
areChemicalStackEqual
public static boolean areChemicalStackEqual(mekanism.api.chemical.ChemicalStack<?> stackA, mekanism.api.chemical.ChemicalStack<?> stackB, boolean checkChemical, boolean checkAmount) -
prototypeWithCount
public static mekanism.api.chemical.ChemicalStack<?> prototypeWithCount(mekanism.api.chemical.ChemicalStack<?> prototype, long count) Helper function to get a copy of the given chemical stack with the given amount.- Parameters:
prototype
- A prototype chemical stack.count
- A new amount.- Returns:
- A copy of the given chemical stack with the given count.
-
getChemicalTagValues
public static Stream<mekanism.api.chemical.ChemicalStack<?>> getChemicalTagValues(String name) throws net.minecraft.ResourceLocationException Retrieves a Stream of chemicals that are registered to this tag name.- Parameters:
name
- The tag name- Returns:
- A Stream containing chemicals registered for this tag
- Throws:
net.minecraft.ResourceLocationException
-