use of forestry.core.IResupplyHandler in project ForestryMC by ForestryMC.
the class InternalModuleHandler method registerHandlers.
private void registerHandlers(BlankForestryModule module, Side side) {
Log.debug("Registering Handlers for Module: {}", module);
IPacketRegistry packetRegistry = module.getPacketRegistry();
if (packetRegistry != null) {
packetRegistry.registerPacketsServer();
if (side == Side.CLIENT) {
packetRegistry.registerPacketsClient();
}
}
IPickupHandler pickupHandler = module.getPickupHandler();
if (pickupHandler != null) {
ModuleManager.pickupHandlers.add(pickupHandler);
}
ISaveEventHandler saveHandler = module.getSaveEventHandler();
if (saveHandler != null) {
ModuleManager.saveEventHandlers.add(saveHandler);
}
IResupplyHandler resupplyHandler = module.getResupplyHandler();
if (resupplyHandler != null) {
ModuleManager.resupplyHandlers.add(resupplyHandler);
}
}
Aggregations