@SubscribeEvent public void missingBlockMappings(RegistryEvent.MissingMappings<Block> event) { for(RegistryEvent.MissingMappings.Mapping<Block> entry : event.getAllMappings()) { // wooder hopper, moved from skyblock to tic if(entry.key.getResourceDomain().equals(TINKERS_SKYBLOCK_MODID) && entry.key.getResourcePath().equals(WOODEN_HOPPER)) { entry.remap(TinkerGadgets.woodenHopper); } } } }
@SubscribeEvent public void missingItemMappings(RegistryEvent.MissingMappings<Item> event) { for(RegistryEvent.MissingMappings.Mapping<Item> entry : event.getAllMappings()) { @Nonnull String path = entry.key.toString(); if(path.equals(Util.resource("bucket")) || path.equals(Util.resource("glow")) || path.equals(Util.resource("blood")) || path.equals(Util.resource("milk")) || path.equals(Util.resource("purpleslime")) || path.equals(Util.resource("blueslime")) || path.contains(Util.resource("molten"))) { entry.ignore(); } // wooder hopper, moved from skyblock to tic if(entry.key.getResourceDomain().equals(TINKERS_SKYBLOCK_MODID) && entry.key.getResourcePath().equals(WOODEN_HOPPER)) { entry.remap(Item.getItemFromBlock(TinkerGadgets.woodenHopper)); } } }
@SubscribeEvent public void missingMapping(MissingMappings<EntityEntry> event) { for (MissingMappings.Mapping<EntityEntry> entry : event.getAllMappings()) { if (factionFixes.keySet().contains(entry.key.toString())) { entry.ignore(); } } } }
@SubscribeEvent public void missingMapping(RegistryEvent.MissingMappings<Item> event) { for (MissingMappings.Mapping<Item> entry : event.getAllMappings()) { switch (entry.key.toString()) { case "thermalexpansion:upgrade": entry.remap(ForgeRegistries.ITEMS.getValue(new ResourceLocation("thermalfoundation:upgrade"))); break; case "thermalfoundation:diagram": entry.remap(ForgeRegistries.ITEMS.getValue(new ResourceLocation("thermalfoundation:diagram_redprint"))); break; case "thermalfoundation:tome": entry.remap(ForgeRegistries.ITEMS.getValue(new ResourceLocation("thermalfoundation:tome_lexicon"))); break; } } }
@SubscribeEvent public void handleItemRenames(MissingMappings<Item> event) { gameObjectsProvider.handleItemRemaps(gameObjectsProvider.hasIntraModRenames()? event.getAllMappings() : event.getMappings()); }
@SubscribeEvent public void missingItemMapping(RegistryEvent.MissingMappings<Item> event) { for (RegistryEvent.MissingMappings.Mapping<Item> entry : event.getAllMappings()) { if (mapping.keySet().contains(entry.key.toString())) { entry.ignore(); } } }
@SubscribeEvent public void missingMapping(RegistryEvent.MissingMappings<Block> event) { for (RegistryEvent.MissingMappings.Mapping<Block> entry : event.getAllMappings()) { if (mapping.keySet().contains(entry.key.toString())) { entry.remap(mapping.get(entry.key.toString()).getSecond()); } } }
@SubscribeEvent public void handleBlockRenames(MissingMappings<Block> event) { gameObjectsProvider.handleBlockRemaps(gameObjectsProvider.hasIntraModRenames()? event.getAllMappings() : event.getMappings()); }
@SubscribeEvent public void onMissingItem(RegistryEvent.MissingMappings<Item> event) { for (RegistryEvent.MissingMappings.Mapping<Item> entry : event.getAllMappings()) { if (entry.key.toString().equals("genetics:dictionary")) { ResourceLocation newTotem = new ResourceLocation("extrabees:dictionary"); Item value = event.getRegistry().getValue(newTotem); if (value != null) { entry.remap(value); } } } } }
@SubscribeEvent public void missingMapping(MissingMappings<EntityEntry> event) { for (MissingMappings.Mapping<EntityEntry> entry : event.getAllMappings()) { if (mapping.keySet().contains(entry.key.toString())) { entry.ignore(); } } } }