Changed translation names for ingredients

This commit is contained in:
drcrazy 2018-09-10 13:42:22 +03:00
parent 3444c05c40
commit 35669641ba
15 changed files with 59 additions and 184 deletions

View file

@ -28,11 +28,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.inventory.Slot;
import net.minecraftforge.items.IItemHandler;
import org.apache.commons.lang3.Range;
import org.apache.commons.lang3.tuple.Pair;
import reborncore.api.tile.ItemHandlerProvider;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.tile.TileLegacyMachineBase;
import java.util.ArrayList;

View file

@ -29,7 +29,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.energy.CapabilityEnergy;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import net.minecraftforge.items.IItemHandler;
import org.apache.commons.lang3.Range;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.Pair;

View file

@ -102,7 +102,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "DUST_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".dust." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -135,7 +135,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "DUST_SMALL_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".dustsmall." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -163,7 +163,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "GEM_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".gem." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -192,7 +192,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "INGOT_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".ingot." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -221,7 +221,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "NUGGET_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".nuggets." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -256,7 +256,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".part." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}
@ -287,7 +287,7 @@ public class TRIngredients {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "PLATE_" + this.toString());
item = new ItemTR();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
item.setTranslationKey(ModInfo.MOD_ID + ".plate." + this.toString().toLowerCase());
TRRecipeHandler.hideEntry(item);
}