2020-09-09 16:48:43 +02:00
|
|
|
package de.ellpeck.actuallyadditions.common;
|
2017-06-29 13:00:11 +02:00
|
|
|
|
|
|
|
//Class to wrap around the trainwreck that is the new registry system
|
2020-09-09 17:10:55 +02:00
|
|
|
// @todo: remove this completely
|
|
|
|
@Deprecated
|
2019-05-02 09:10:29 +02:00
|
|
|
public class RegistryHandler {
|
2020-09-09 17:10:55 +02:00
|
|
|
//
|
|
|
|
// public static final List<Block> BLOCKS_TO_REGISTER = new ArrayList<>();
|
|
|
|
// public static final List<Item> ITEMS_TO_REGISTER = new ArrayList<>();
|
|
|
|
// public static final List<SoundEvent> SOUNDS_TO_REGISTER = new ArrayList<>();
|
|
|
|
// public static final List<IRecipe> RECIPES_TO_REGISTER = new ArrayList<>();
|
|
|
|
//
|
|
|
|
// @SubscribeEvent
|
|
|
|
// public void onBlockRegistry(Register<Block> event) {
|
|
|
|
// InitBlocks.init();
|
|
|
|
//
|
|
|
|
// for (Block block : BLOCKS_TO_REGISTER) {
|
|
|
|
// event.getRegistry().register(block);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// @SubscribeEvent
|
|
|
|
// public void onItemRegistry(Register<Item> event) {
|
|
|
|
// InitItems.init();
|
|
|
|
//
|
|
|
|
// for (Item item : ITEMS_TO_REGISTER) {
|
|
|
|
// event.getRegistry().register(item);
|
|
|
|
// }
|
|
|
|
// ITEMS_TO_REGISTER.clear();
|
|
|
|
//
|
|
|
|
// //Hack to make this register before recipes :>
|
|
|
|
// InitOreDict.init();
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// @SubscribeEvent
|
|
|
|
// public void onVillagerRegistry(Register<VillagerProfession> event) {
|
|
|
|
// InitVillager.init();
|
|
|
|
//
|
|
|
|
// if (ConfigBoolValues.JAM_VILLAGER_EXISTS.isEnabled()) event.getRegistry().register(InitVillager.jamProfession);
|
|
|
|
// if (ConfigBoolValues.ENGINEER_VILLAGER_EXISTS.isEnabled()) event.getRegistry().register(InitVillager.engineerProfession);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// @SubscribeEvent
|
|
|
|
// public void onCraftingRegistry(Register<IRecipe> event) {
|
|
|
|
// InitCrafting.init();
|
|
|
|
//
|
|
|
|
// for (IRecipe recipe : RECIPES_TO_REGISTER) {
|
|
|
|
// event.getRegistry().register(recipe);
|
|
|
|
// }
|
|
|
|
// RECIPES_TO_REGISTER.clear();
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// @SubscribeEvent
|
|
|
|
// public void onSoundRegistry(Register<SoundEvent> event) {
|
|
|
|
// SoundHandler.init();
|
|
|
|
//
|
|
|
|
// for (SoundEvent sound : SOUNDS_TO_REGISTER) {
|
|
|
|
// event.getRegistry().register(sound);
|
|
|
|
// }
|
|
|
|
// SOUNDS_TO_REGISTER.clear();
|
|
|
|
// }
|
2017-06-29 13:00:11 +02:00
|
|
|
}
|