mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
* Use Recipe generics in more places * Use Recipe generics in even more places * Use Recipe generics for IMCHandler * Turns out I was wrong about the old enum names being used * More Recipe generics for getting recipes * Pass MachineType as constructor parameter up the chain * Minor readability cleanup * Use method to get block name while in external classes * Improve readability of some references to internal enum classes * More missed recipe generics to reduce number of casts * Make sure to check NBT for the recipes, and switch back to for loops from streams
20 lines
690 B
Java
20 lines
690 B
Java
package mekanism.common.tile;
|
|
|
|
import java.util.Map;
|
|
import mekanism.common.block.states.BlockStateMachine.MachineType;
|
|
import mekanism.common.recipe.RecipeHandler.Recipe;
|
|
import mekanism.common.recipe.inputs.ItemStackInput;
|
|
import mekanism.common.recipe.machines.EnrichmentRecipe;
|
|
import mekanism.common.tile.prefab.TileEntityElectricMachine;
|
|
|
|
public class TileEntityEnrichmentChamber extends TileEntityElectricMachine<EnrichmentRecipe> {
|
|
|
|
public TileEntityEnrichmentChamber() {
|
|
super("enrichment", MachineType.ENRICHMENT_CHAMBER, 200);
|
|
}
|
|
|
|
@Override
|
|
public Map<ItemStackInput, EnrichmentRecipe> getRecipes() {
|
|
return Recipe.ENRICHMENT_CHAMBER.get();
|
|
}
|
|
} |