Files
Mekanism-Community-Edition/src/main/java/mekanism/client/nei/CrusherRecipeHandler.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

50 lines
920 B
Java

package mekanism.client.nei;
import java.util.Collection;
import java.util.Set;
import mekanism.client.gui.GuiCrusher;
import mekanism.client.gui.GuiProgress.ProgressBar;
import mekanism.common.recipe.RecipeHandler.Recipe;
import mekanism.common.recipe.machines.CrusherRecipe;
import mekanism.common.util.MekanismUtils;
public class CrusherRecipeHandler extends MachineRecipeHandler
{
@Override
public String getRecipeName()
{
return MekanismUtils.localize("tile.MachineBlock.Crusher.name");
}
@Override
public String getRecipeId()
{
return "mekanism.crusher";
}
@Override
public String getOverlayIdentifier()
{
return "crusher";
}
@Override
public ProgressBar getProgressType()
{
return ProgressBar.CRUSH;
}
@Override
public Collection<CrusherRecipe> getRecipes()
{
return Recipe.CRUSHER.get().values();
}
@Override
public Class getGuiClass()
{
return GuiCrusher.class;
}
}