Class IngredientMatcherChemicalStack

java.lang.Object
org.cyclops.integratedmekanismics.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 Details

    • IngredientMatcherChemicalStack

      public IngredientMatcherChemicalStack()
  • Method Details

    • isInstance

      public boolean isInstance(Object object)
      Specified by:
      isInstance in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getAnyMatchCondition

      public Integer getAnyMatchCondition()
      Specified by:
      getAnyMatchCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getExactMatchCondition

      public Integer getExactMatchCondition()
      Specified by:
      getExactMatchCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getExactMatchNoQuantityCondition

      public Integer getExactMatchNoQuantityCondition()
      Specified by:
      getExactMatchNoQuantityCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • withCondition

      public Integer withCondition(Integer matchCondition, Integer with)
      Specified by:
      withCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • withoutCondition

      public Integer withoutCondition(Integer matchCondition, Integer without)
      Specified by:
      withoutCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • hasCondition

      public boolean hasCondition(Integer matchCondition, Integer searchCondition)
      Specified by:
      hasCondition in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • hash

      public int hash(mekanism.api.chemical.ChemicalStack<?> instance)
      Specified by:
      hash in interface org.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 interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getQuantity

      public long getQuantity(mekanism.api.chemical.ChemicalStack<?> instance)
      Specified by:
      getQuantity in interface org.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 interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getEmptyInstance

      public mekanism.api.chemical.ChemicalStack<?> getEmptyInstance()
      Specified by:
      getEmptyInstance in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • isEmpty

      public boolean isEmpty(mekanism.api.chemical.ChemicalStack<?> instance)
      Specified by:
      isEmpty in interface org.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 interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getMaximumQuantity

      public long getMaximumQuantity()
      Specified by:
      getMaximumQuantity in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • conditionCompare

      public int conditionCompare(Integer a, Integer b)
      Specified by:
      conditionCompare in interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • localize

      public String localize(mekanism.api.chemical.ChemicalStack<?> instance)
      Specified by:
      localize in interface org.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 interface org.cyclops.commoncapabilities.api.ingredient.IIngredientMatcher<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • toString

      public String toString(mekanism.api.chemical.ChemicalStack<? extends mekanism.api.chemical.Chemical> instance)
      Specified by:
      toString in interface org.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 interface Comparator<mekanism.api.chemical.ChemicalStack<?>>