Files
Mekanism-Community-Edition/src/main/java/mekanism/common/recipe/inputs/IntegerInput.java
T
Ben Spiers ce6946c669 Massive recipe system overhaul.
They should be much more efficient now (this reduced the tick time of the CI Chamber by 3-4x in my testing), due to being able to just use the HashMap's get() instead of being limited to iterating through entries. NEI integration code now a lot more readable and type-safe as well.
2014-09-04 04:26:55 +01:00

25 lines
407 B
Java

package mekanism.common.recipe.inputs;
public class IntegerInput extends MachineInput
{
public int ingredient;
public IntegerInput(int integer)
{
ingredient = integer;
}
@Override
public int hashIngredients()
{
return ingredient;
}
@Override
public boolean testEquality(MachineInput other)
{
return other instanceof IntegerInput && ingredient == ((IntegerInput)other).ingredient;
}
}