mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
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.
50 lines
920 B
Java
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;
|
|
}
|
|
}
|