Skip to content

Commit 04f9ada

Browse files
committed
Rename create to register
1 parent cc05336 commit 04f9ada

File tree

1 file changed

+13
-13
lines changed
  • src/main/java/aztech/modern_industrialization/machines/multiblocks

1 file changed

+13
-13
lines changed

src/main/java/aztech/modern_industrialization/machines/multiblocks/HatchTypes.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
public class HatchTypes {
3535
private static final Map<ResourceLocation, HatchType> registeredHatches = new HashMap<>();
3636

37-
public static final HatchType ITEM_INPUT = create(MI.id("item_input"), MIText.ItemInputHatch);
38-
public static final HatchType ITEM_OUTPUT = create(MI.id("item_output"), MIText.ItemOutputHatch);
39-
public static final HatchType FLUID_INPUT = create(MI.id("fluid_input"), MIText.FluidInputHatch);
40-
public static final HatchType FLUID_OUTPUT = create(MI.id("fluid_output"), MIText.FluidOutputHatch);
41-
public static final HatchType ENERGY_INPUT = create(MI.id("energy_input"), MIText.EnergyInputHatch);
42-
public static final HatchType ENERGY_OUTPUT = create(MI.id("energy_output"), MIText.EnergyOutputHatch);
43-
public static final HatchType NUCLEAR_ITEM = create(MI.id("nuclear_item"), MI.id("nuclear_item_hatch"));
44-
public static final HatchType NUCLEAR_FLUID = create(MI.id("nuclear_fluid"), MI.id("nuclear_fluid_hatch"));
45-
public static final HatchType LARGE_TANK = create(MI.id("large_tank"), MI.id("large_tank_hatch"));
37+
public static final HatchType ITEM_INPUT = register(MI.id("item_input"), MIText.ItemInputHatch);
38+
public static final HatchType ITEM_OUTPUT = register(MI.id("item_output"), MIText.ItemOutputHatch);
39+
public static final HatchType FLUID_INPUT = register(MI.id("fluid_input"), MIText.FluidInputHatch);
40+
public static final HatchType FLUID_OUTPUT = register(MI.id("fluid_output"), MIText.FluidOutputHatch);
41+
public static final HatchType ENERGY_INPUT = register(MI.id("energy_input"), MIText.EnergyInputHatch);
42+
public static final HatchType ENERGY_OUTPUT = register(MI.id("energy_output"), MIText.EnergyOutputHatch);
43+
public static final HatchType NUCLEAR_ITEM = register(MI.id("nuclear_item"), MI.id("nuclear_item_hatch"));
44+
public static final HatchType NUCLEAR_FLUID = register(MI.id("nuclear_fluid"), MI.id("nuclear_fluid_hatch"));
45+
public static final HatchType LARGE_TANK = register(MI.id("large_tank"), MI.id("large_tank_hatch"));
4646

47-
public static HatchType create(ResourceLocation id, MutableComponent description) {
47+
public static HatchType register(ResourceLocation id, MutableComponent description) {
4848
if (registeredHatches.containsKey(id)) {
4949
throw new IllegalArgumentException("Duplicate hatch type definition: " + id);
5050
}
@@ -53,11 +53,11 @@ public static HatchType create(ResourceLocation id, MutableComponent description
5353
return type;
5454
}
5555

56-
public static HatchType create(ResourceLocation id, MIText description) {
57-
return create(id, description.text());
56+
public static HatchType register(ResourceLocation id, MIText description) {
57+
return register(id, description.text());
5858
}
5959

60-
public static HatchType create(ResourceLocation id, ResourceLocation blockId) {
60+
public static HatchType register(ResourceLocation id, ResourceLocation blockId) {
6161
if (registeredHatches.containsKey(id)) {
6262
throw new IllegalArgumentException("Duplicate hatch type definition: " + id);
6363
}

0 commit comments

Comments
 (0)