Update forge/mappings/thaumcraft

This commit is contained in:
Vincent Lee committed 2018-12-25 22:02:04 -06:00
1 parent 5393a5202a
commit fb8ebd8ca7
113 files changed
+179 -185

No files matched your search

@@ -660,11 +660,11 @@ public final class BotaniaAPI {
if(stack.isEmpty())
return "";
return "i_" + stack.getItem().getUnlocalizedName() + "@" + stack.getItemDamage();
return "i_" + stack.getItem().getTranslationKey() + "@" + stack.getItemDamage();
}
private static String getMagnetKey(Block block, int meta) {
return "bm_" + block.getUnlocalizedName() + "@" + meta;
return "bm_" + block.getTranslationKey() + "@" + meta;
}
}
@@ -56,7 +56,7 @@ public final class BotaniaAPIClient {
* @param model A path to a blockstate json and variant to be used the block. The item model will be drawn from the same blockstate json, from variant "inventory"
*/
public static void registerSubtileModel(String subTileName, ModelResourceLocation model) {
registerSubtileModel(subTileName, model, new ModelResourceLocation(model.getResourceDomain() + ":" + model.getResourcePath(), "inventory"));
registerSubtileModel(subTileName, model, new ModelResourceLocation(model.getNamespace() + ":" + model.getPath(), "inventory"));
}
// Convenience overloads for the above two calls
@@ -65,7 +65,7 @@ public final class LexiconRecipeMappings {
if(stack.hasTagCompound() && stack.getItem() instanceof IRecipeKeyProvider)
return ((IRecipeKeyProvider) stack.getItem()).getKey(stack);
return stack.getUnlocalizedName() + (forceIgnore || ignoreMeta(stack) ? "" : "~" + stack.getItemDamage());
return stack.getTranslationKey() + (forceIgnore || ignoreMeta(stack) ? "" : "~" + stack.getItemDamage());
}
public static boolean ignoreMeta(ItemStack stack) {
@@ -24,7 +24,7 @@ public class WikiHooks {
public static IWikiProvider getWikiFor(Block block) {
ResourceLocation mod = Block.REGISTRY.getNameForObject(block);
return getWikiFor(mod == null ? "" : mod.getResourceDomain().toLowerCase());
return getWikiFor(mod == null ? "" : mod.getNamespace().toLowerCase());
}
public static IWikiProvider getWikiFor(String mod) {