Skip to content

Commit b660cb8

Browse files
code cleanup
1 parent dbfd8d8 commit b660cb8

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/main/java/com/rae/formicapi/Event.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.apache.logging.log4j.Logger;
1414

1515
import java.util.Objects;
16+
1617
@Mod.EventBusSubscriber()
1718
public class Event {
1819
private static final Logger LOGGER = LogManager.getLogger();
@@ -35,6 +36,7 @@ public static <T> Registry<T> getSideAwareRegistry(ResourceKey<Registry<T>> regi
3536
.orElseThrow();
3637
}
3738
}
39+
3840
@SubscribeEvent
3941
public static void onRegisterCommands(RegisterCommandsEvent event) {
4042
CommandsInit.register(event.getDispatcher());

src/main/java/com/rae/formicapi/FormicAPI.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,12 @@ public FormicAPI() {
2626
IEventBus forgeEventBus = MinecraftForge.EVENT_BUS;
2727
ModLoadingContext modLoadingContext = ModLoadingContext.get();
2828
FormicAPIConfigs.registerConfigs(modLoadingContext);
29-
modEventBus.addListener(EventPriority.NORMAL,this::gatherData);
29+
modEventBus.addListener(EventPriority.NORMAL, this::gatherData);
3030
forgeEventBus.addListener(FormicAPI::onAddReloadListeners);
3131

3232

3333
}
3434

35-
public static void onAddReloadListeners(AddReloadListenerEvent event)
36-
{
37-
FullTableBased.addReloadListeners(event);
38-
}
39-
4035
public void gatherData(GatherDataEvent event) {
4136
DataGenerator generator = event.getGenerator();
4237
PackOutput output = generator.getPackOutput();
@@ -79,8 +74,13 @@ output, new ResourceLocation(MODID, "water/pressure_entropy_to_temperature"),
7974
,1e2f,0, 1e7f, 5e7f,1000,1000,StepMode.LOGARITHMIC, StepMode.LINEAR, true
8075
));*/
8176
}
77+
78+
public static void onAddReloadListeners(AddReloadListenerEvent event) {
79+
FullTableBased.addReloadListeners(event);
80+
}
81+
8282
public static ResourceLocation resource(String name) {
83-
return new ResourceLocation(MODID,name);
83+
return new ResourceLocation(MODID, name);
8484
}
8585

8686
}

0 commit comments

Comments
 (0)