Class IngredientMatcherChemicalStack
java.lang.Object
org.cyclops.integratedmekanism.ingredient.IngredientMatcherChemicalStack
- All Implemented Interfaces:
Comparator<mekanism.api.chemical.ChemicalStack>
,org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
public class IngredientMatcherChemicalStack
extends Object
implements org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,Integer>
Matcher for ChemicalStacks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(mekanism.api.chemical.ChemicalStack o1, mekanism.api.chemical.ChemicalStack o2) int
conditionCompare
(Integer a, Integer b) mekanism.api.chemical.ChemicalStack
copy
(mekanism.api.chemical.ChemicalStack instance) net.minecraft.network.chat.MutableComponent
getDisplayName
(mekanism.api.chemical.ChemicalStack instance) mekanism.api.chemical.ChemicalStack
long
long
getQuantity
(mekanism.api.chemical.ChemicalStack instance) boolean
hasCondition
(Integer matchCondition, Integer searchCondition) int
hash
(mekanism.api.chemical.ChemicalStack instance) boolean
isEmpty
(mekanism.api.chemical.ChemicalStack instance) boolean
isInstance
(Object object) localize
(mekanism.api.chemical.ChemicalStack instance) boolean
matches
(mekanism.api.chemical.ChemicalStack a, mekanism.api.chemical.ChemicalStack b, Integer matchCondition) toString
(mekanism.api.chemical.ChemicalStack instance) withCondition
(Integer matchCondition, Integer with) withoutCondition
(Integer matchCondition, Integer without) mekanism.api.chemical.ChemicalStack
withQuantity
(mekanism.api.chemical.ChemicalStack instance, long quantity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher
matchesExactly
-
Constructor Details
-
IngredientMatcherChemicalStack
public IngredientMatcherChemicalStack()
-
-
Method Details
-
isInstance
- Specified by:
isInstance
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getAnyMatchCondition
- Specified by:
getAnyMatchCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getExactMatchCondition
- Specified by:
getExactMatchCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getExactMatchNoQuantityCondition
- Specified by:
getExactMatchNoQuantityCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
withCondition
- Specified by:
withCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
withoutCondition
- Specified by:
withoutCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
hasCondition
- Specified by:
hasCondition
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
hash
public int hash(mekanism.api.chemical.ChemicalStack instance) - Specified by:
hash
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
copy
public mekanism.api.chemical.ChemicalStack copy(mekanism.api.chemical.ChemicalStack instance) - Specified by:
copy
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getQuantity
public long getQuantity(mekanism.api.chemical.ChemicalStack instance) - Specified by:
getQuantity
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
matches
public boolean matches(mekanism.api.chemical.ChemicalStack a, mekanism.api.chemical.ChemicalStack b, Integer matchCondition) - Specified by:
matches
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getEmptyInstance
public mekanism.api.chemical.ChemicalStack getEmptyInstance()- Specified by:
getEmptyInstance
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
isEmpty
public boolean isEmpty(mekanism.api.chemical.ChemicalStack instance) - Specified by:
isEmpty
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
withQuantity
public mekanism.api.chemical.ChemicalStack withQuantity(mekanism.api.chemical.ChemicalStack instance, long quantity) - Specified by:
withQuantity
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getMaximumQuantity
public long getMaximumQuantity()- Specified by:
getMaximumQuantity
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
conditionCompare
- Specified by:
conditionCompare
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
localize
- Specified by:
localize
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
getDisplayName
public net.minecraft.network.chat.MutableComponent getDisplayName(mekanism.api.chemical.ChemicalStack instance) - Specified by:
getDisplayName
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
toString
- Specified by:
toString
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack,
Integer>
-
compare
public int compare(mekanism.api.chemical.ChemicalStack o1, mekanism.api.chemical.ChemicalStack o2) - Specified by:
compare
in interfaceComparator<mekanism.api.chemical.ChemicalStack>
-