|
32 | 32 | public class MachineCasings { |
33 | 33 |
|
34 | 34 | public static final Map<ResourceLocation, MachineCasing> registeredCasings = new HashMap<>(); |
| 35 | + public static final Map<ResourceLocation, String> casingNames = new HashMap<>(); |
35 | 36 |
|
36 | | - public static final MachineCasing BRICKED_BRONZE = create("bricked_bronze"); |
37 | | - public static final MachineCasing BRICKED_STEEL = create("bricked_steel"); |
38 | | - public static final MachineCasing BRICKS = create("bricks"); |
39 | | - public static final MachineCasing BRONZE = create("bronze"); |
40 | | - public static final MachineCasing BRONZE_PLATED_BRICKS = create("bronze_plated_bricks"); |
41 | | - public static final MachineCasing CLEAN_STAINLESS_STEEL = create("clean_stainless_steel_machine_casing"); |
42 | | - public static final MachineCasing CONFIGURABLE_TANK = create("configurable_tank"); |
43 | | - public static final MachineCasing STAINLESS_STEEL_PIPE = create("stainless_steel_machine_casing_pipe"); |
44 | | - public static final MachineCasing FIREBRICKS = create("firebricks"); |
45 | | - public static final MachineCasing FROSTPROOF = create("frostproof_machine_casing"); |
46 | | - public static final MachineCasing HEATPROOF = create("heatproof_machine_casing"); |
47 | | - public static final MachineCasing STEEL = create("steel"); |
48 | | - public static final MachineCasing STEEL_CRATE = create("steel_crate"); |
49 | | - public static final MachineCasing TITANIUM = create("titanium"); |
50 | | - public static final MachineCasing TITANIUM_PIPE = create("titanium_machine_casing_pipe"); |
51 | | - public static final MachineCasing SOLID_TITANIUM = create("solid_titanium_machine_casing"); |
52 | | - public static final MachineCasing NUCLEAR = create("nuclear_casing"); |
53 | | - public static final MachineCasing PLASMA_HANDLING_IRIDIUM = create("plasma_handling_iridium_machine_casing"); |
| 37 | + public static final MachineCasing BRICKED_BRONZE = create("bricked_bronze", "Bricked Bronze"); |
| 38 | + public static final MachineCasing BRICKED_STEEL = create("bricked_steel", "Bricked Steel"); |
| 39 | + public static final MachineCasing BRICKS = create("bricks", "Bricks"); |
| 40 | + public static final MachineCasing BRONZE = create("bronze", "Bronze"); |
| 41 | + public static final MachineCasing BRONZE_PLATED_BRICKS = create("bronze_plated_bricks", "Bronze Plated Bricks"); |
| 42 | + public static final MachineCasing CLEAN_STAINLESS_STEEL = create("clean_stainless_steel_machine_casing", "Clean Stainless Steel"); |
| 43 | + public static final MachineCasing CONFIGURABLE_TANK = create("configurable_tank", "Configurable Tank"); |
| 44 | + public static final MachineCasing STAINLESS_STEEL_PIPE = create("stainless_steel_machine_casing_pipe", "Stainless Steel Pipe"); |
| 45 | + public static final MachineCasing FIREBRICKS = create("firebricks", "Firebricks"); |
| 46 | + public static final MachineCasing FROSTPROOF = create("frostproof_machine_casing", "Frostproof"); |
| 47 | + public static final MachineCasing HEATPROOF = create("heatproof_machine_casing", "Heatproof"); |
| 48 | + public static final MachineCasing STEEL = create("steel", "Steel"); |
| 49 | + public static final MachineCasing STEEL_CRATE = create("steel_crate", "Steel Crate"); |
| 50 | + public static final MachineCasing TITANIUM = create("titanium", "Titanium"); |
| 51 | + public static final MachineCasing TITANIUM_PIPE = create("titanium_machine_casing_pipe", "Titanium Pipe"); |
| 52 | + public static final MachineCasing SOLID_TITANIUM = create("solid_titanium_machine_casing", "Solid Titanium"); |
| 53 | + public static final MachineCasing NUCLEAR = create("nuclear_casing", "Nuclear"); |
| 54 | + public static final MachineCasing PLASMA_HANDLING_IRIDIUM = create("plasma_handling_iridium_machine_casing", "Plasma Handling Iridium"); |
54 | 55 |
|
55 | 56 | static { |
56 | 57 | KubeJSProxy.instance.fireRegisterMachineCasingsEvent(); |
57 | 58 | } |
58 | 59 |
|
59 | | - public static MachineCasing create(ResourceLocation key) { |
| 60 | + public static MachineCasing create(ResourceLocation key, String englishName) { |
60 | 61 | if (registeredCasings.containsKey(key)) { |
61 | 62 | throw new IllegalArgumentException("Duplicate machine casing definition: " + key); |
62 | 63 | } |
63 | 64 |
|
64 | 65 | MachineCasing casing = new MachineCasing(key); |
65 | 66 | registeredCasings.put(key, casing); |
| 67 | + casingNames.put(key, englishName); |
66 | 68 | return casing; |
67 | 69 | } |
68 | 70 |
|
69 | | - public static MachineCasing create(String name) { |
70 | | - return create(MI.id(name)); |
| 71 | + public static MachineCasing create(String name, String englishName) { |
| 72 | + return create(MI.id(name), englishName); |
71 | 73 | } |
72 | 74 |
|
73 | 75 | public static MachineCasing get(ResourceLocation key) { |
|
0 commit comments