Minor cleanup

This commit is contained in:
modmuss50 2019-08-19 20:09:07 +01:00
parent e4c9005e23
commit a30e86b4cb

View file

@ -36,51 +36,51 @@ import java.util.stream.Stream;
public enum EGui implements IMachineGuiHandler {
AESU(true),
ALLOY_FURNACE(true),
ALLOY_SMELTER(true),
ASSEMBLING_MACHINE(true),
AUTO_CRAFTING_TABLE(true),
BLAST_FURNACE(true),
CENTRIFUGE(true),
CHARGEBENCH(true),
CHEMICAL_REACTOR(true),
CHUNK_LOADER(true),
COMPRESSOR(true),
AESU,
ALLOY_FURNACE,
ALLOY_SMELTER,
ASSEMBLING_MACHINE,
AUTO_CRAFTING_TABLE,
BLAST_FURNACE,
CENTRIFUGE,
CHARGEBENCH,
CHEMICAL_REACTOR,
CHUNK_LOADER,
COMPRESSOR,
DESTRUCTOPACK(false),
DIESEL_GENERATOR(true),
DIGITAL_CHEST(true),
DISTILLATION_TOWER(true),
ELECTRIC_FURNACE(true),
EXTRACTOR(true),
FUSION_CONTROLLER(true),
GAS_TURBINE(true),
GENERATOR(true),
GRINDER(true),
HIGH_VOLTAGE_SU(true),
IDSU(true),
IMPLOSION_COMPRESSOR(true),
INDUSTRIAL_ELECTROLYZER(true),
INDUSTRIAL_GRINDER(true),
IRON_FURNACE(true),
LESU(true),
LOW_VOLTAGE_SU(true),
DIESEL_GENERATOR,
DIGITAL_CHEST,
DISTILLATION_TOWER,
ELECTRIC_FURNACE,
EXTRACTOR,
FUSION_CONTROLLER,
GAS_TURBINE,
GENERATOR,
GRINDER,
HIGH_VOLTAGE_SU,
IDSU,
IMPLOSION_COMPRESSOR,
INDUSTRIAL_ELECTROLYZER,
INDUSTRIAL_GRINDER,
IRON_FURNACE,
LESU,
LOW_VOLTAGE_SU,
MANUAL(false),
MATTER_FABRICATOR(true),
MEDIUM_VOLTAGE_SU(true),
PLASMA_GENERATOR(true),
QUANTUM_CHEST(true),
QUANTUM_TANK(true),
RECYCLER(true),
ROLLING_MACHINE(true),
SAWMILL(true),
SCRAPBOXINATOR(true),
SEMIFLUID_GENERATOR(true),
THERMAL_GENERATOR(true),
VACUUM_FREEZER(true),
SOLID_CANNING_MACHINE(true),
WIRE_MILL(true),
FLUID_REPLICATOR(true);
MATTER_FABRICATOR,
MEDIUM_VOLTAGE_SU,
PLASMA_GENERATOR,
QUANTUM_CHEST,
QUANTUM_TANK,
RECYCLER,
ROLLING_MACHINE,
SAWMILL,
SCRAPBOXINATOR,
SEMIFLUID_GENERATOR,
THERMAL_GENERATOR,
VACUUM_FREEZER,
SOLID_CANNING_MACHINE,
WIRE_MILL,
FLUID_REPLICATOR;
private final boolean containerBuilder;
@ -88,6 +88,10 @@ public enum EGui implements IMachineGuiHandler {
this.containerBuilder = containerBuilder;
}
EGui(){
this(true);
}
public static EGui byID(Identifier resourceLocation){
return Arrays.stream(values())
.filter(eGui -> eGui.name().toLowerCase().equals(resourceLocation.getPath()))