Added Localizations for dusts/gems/ingots/parts
This commit is contained in:
parent
e87f2d2430
commit
3d5439b511
5 changed files with 160 additions and 15 deletions
|
@ -7,8 +7,10 @@ import techreborn.client.TechRebornCreativeTab;
|
|||
import techreborn.lib.ModInfo;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class ItemDusts extends ItemTR
|
||||
|
@ -16,12 +18,12 @@ public class ItemDusts extends ItemTR
|
|||
public static final String[] types = new String[]
|
||||
{
|
||||
"Almandine", "Aluminium", "Andradite", "Ashes", "Basalt", "Bauxite", "Brass", "Bronze",
|
||||
"Calcite","Charcoal", "Chrome", "Cinnabar", "Clay", "Coal", "Copper", "Dark Ashes", "Diamond",
|
||||
"Electrum","Emerald", "Ender Eye", "Ender Pearl", "Endstone", "Flint", "Gold", "Green Sapphire", "Grossular",
|
||||
"Calcite","Charcoal", "Chrome", "Cinnabar", "Clay", "Coal", "Copper", "DarkAshes", "Diamond",
|
||||
"Electrum","Emerald", "EnderEye", "EnderPearl", "Endstone", "Flint", "Gold", "GreenSapphire", "Grossular",
|
||||
"Invar", "Iron", "Lazurite", "Lead", "Magnesium", "Marble", "Netherrack", "Nickel", "Obsidian",
|
||||
"Olivine","Phosphor", "Platinum", "Pyrite", "Pyrope", "Red Garnet", "Redrock", "Ruby", "Saltpeter", "Sapphire",
|
||||
"Olivine","Phosphor", "Platinum", "Pyrite", "Pyrope", "RedGarnet", "Redrock", "Ruby", "Saltpeter", "Sapphire",
|
||||
"Silver", "Sodalite", "Spessartine", "Sphalerite", "Steel", "Sulfur", "Tin", "Titanium", "Tungsten", "Uranium",
|
||||
"Uvarovite", "Yellow Garnet", "Zinc"
|
||||
"Uvarovite", "YellowGarnet", "Zinc"
|
||||
};
|
||||
|
||||
private IIcon[] textures;
|
||||
|
@ -41,7 +43,7 @@ public class ItemDusts extends ItemTR
|
|||
|
||||
for (int i = 0; i < types.length; ++i)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon(ModInfo.MOD_ID + "dust");
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "dust"+types[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,4 +81,11 @@ public class ItemDusts extends ItemTR
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack itemstack)
|
||||
{
|
||||
return EnumRarity.uncommon;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -2,24 +2,27 @@ package techreborn.items;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.lib.ModInfo;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class ItemGems extends ItemTR{
|
||||
public class ItemGems extends Item{
|
||||
public static final String[] types = new String[]
|
||||
{
|
||||
"Ruby", "Sapphire", "Green Sapphire", "Olivine", "RedGarnet", "YellowGarnet"
|
||||
"Ruby", "Sapphire", "GreenSapphire", "Olivine", "RedGarnet", "YellowGarnet"
|
||||
};
|
||||
|
||||
private IIcon[] textures;
|
||||
|
||||
public ItemGems()
|
||||
{
|
||||
setUnlocalizedName("gem");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setUnlocalizedName("techreborn.gem");
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
|
@ -31,7 +34,7 @@ public class ItemGems extends ItemTR{
|
|||
|
||||
for (int i = 0; i < types.length; ++i)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon(ModInfo.MOD_ID + "gem");
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "gem"+types[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,5 +71,11 @@ public class ItemGems extends ItemTR{
|
|||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack itemstack)
|
||||
{
|
||||
return EnumRarity.uncommon;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,14 +2,16 @@ package techreborn.items;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.lib.ModInfo;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class ItemIngots extends ItemTR{
|
||||
public class ItemIngots extends Item{
|
||||
public static final String[] types = new String[]
|
||||
{
|
||||
"IridiumAlloy", "HotTungstenSteel", "TungstenSteel", "Iridium", "Silver", "Aluminium", "Titanium", "Chrome",
|
||||
|
@ -20,6 +22,7 @@ public class ItemIngots extends ItemTR{
|
|||
|
||||
public ItemIngots()
|
||||
{
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setHasSubtypes(true);
|
||||
setUnlocalizedName("techreborn.ingot");
|
||||
}
|
||||
|
@ -32,7 +35,7 @@ public class ItemIngots extends ItemTR{
|
|||
|
||||
for (int i = 0; i < types.length; ++i)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon(ModInfo.MOD_ID + "ingot");
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "ingot"+types[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,5 +72,11 @@ public class ItemIngots extends ItemTR{
|
|||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack itemstack)
|
||||
{
|
||||
return EnumRarity.uncommon;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,12 +4,14 @@ import java.util.List;
|
|||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
public class ItemParts extends ItemTR{
|
||||
public class ItemParts extends Item{
|
||||
public static final String[] types = new String[]
|
||||
{
|
||||
"LazuriteChunk", "SiliconPlate", "MagnaliumPlate", "EnergeyFlowCircuit", "DataControlCircuit", "SuperConductor",
|
||||
|
@ -21,8 +23,9 @@ public class ItemParts extends ItemTR{
|
|||
private IIcon[] textures;
|
||||
public ItemParts()
|
||||
{
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setHasSubtypes(true);
|
||||
setUnlocalizedName("part");
|
||||
setUnlocalizedName("techreborn.part");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -33,7 +36,7 @@ public class ItemParts extends ItemTR{
|
|||
|
||||
for (int i = 0; i < types.length; ++i)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon(ModInfo.MOD_ID + "part");
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "part"+types[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,5 +73,11 @@ public class ItemParts extends ItemTR{
|
|||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack itemstack)
|
||||
{
|
||||
return EnumRarity.rare;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,4 +16,113 @@ tile.techreborn.ore.Sphalerite.name=Sphalerite Ore
|
|||
tile.techreborn.ore.Tungston.name=Tungston Ore
|
||||
tile.techreborn.ore.Sheldonite.name=Sheldonite Ore
|
||||
tile.techreborn.ore.Olivine.name=Olivine Ore
|
||||
tile.techreborn.ore.Sodalite.name=Sodalite Ore
|
||||
tile.techreborn.ore.Sodalite.name=Sodalite Ore
|
||||
|
||||
#Dusts
|
||||
item.techreborn.dust.Almandine.name=Almandine Dust
|
||||
item.techreborn.dust.Aluminium.name=Aluminium Dust
|
||||
item.techreborn.dust.Andradite.name=Andradite Dust
|
||||
item.techreborn.dust.Ashes.name=Ashes
|
||||
item.techreborn.dust.Basalt.name=Basalt Dust
|
||||
item.techreborn.dust.Bauxite.name=Bauxite Dust
|
||||
item.techreborn.dust.Brass.name=Brass Dust
|
||||
item.techreborn.dust.Bronze.name=Bronze Dust
|
||||
item.techreborn.dust.Calcite.name=Calcite Dust
|
||||
item.techreborn.dust.Charcoal.name=Charcoal Dust
|
||||
item.techreborn.dust.Chrome.name=Chrome Dust
|
||||
item.techreborn.dust.Cinnabar.name=Cinnabar Dust
|
||||
item.techreborn.dust.Clay.name=Clay Dust
|
||||
item.techreborn.dust.Coal.name=Coal Dust
|
||||
item.techreborn.dust.Copper.name=Copper Dust
|
||||
item.techreborn.dust.DarkAshes.name=Dark Ashes
|
||||
item.techreborn.dust.Diamond.name=Diamond Dust
|
||||
item.techreborn.dust.Electrum.name=Electrum Dust
|
||||
item.techreborn.dust.Emerald.name=Emerald Dust
|
||||
item.techreborn.dust.EnderEye.name=EnderEye Dust
|
||||
item.techreborn.dust.EnderPearl.name=EnderPearl Dust
|
||||
item.techreborn.dust.Endstone.name=Endstone Dust
|
||||
item.techreborn.dust.Flint.name=Flint Dust
|
||||
item.techreborn.dust.Gold.name=Gold Dust
|
||||
item.techreborn.dust.GreenSapphire.name=GreenSapphire Dust
|
||||
item.techreborn.dust.Grossular.name=Grossular Dust
|
||||
item.techreborn.dust.Invar.name=Invar Dust
|
||||
item.techreborn.dust.Iron.name=Iron Dust
|
||||
item.techreborn.dust.Lazurite.name=Lazurite Dust
|
||||
item.techreborn.dust.Lead.name=Lead Dust
|
||||
item.techreborn.dust.Magnesium.name=Magnesium Dust
|
||||
item.techreborn.dust.Marble.name=Marble Dust
|
||||
item.techreborn.dust.Netherrack.name=Netherrack Dust
|
||||
item.techreborn.dust.Nickel.name=Nickel Dust
|
||||
item.techreborn.dust.Obsidian.name=Obsidian Dust
|
||||
item.techreborn.dust.Olivine.name=Olivine Dust
|
||||
item.techreborn.dust.Phosphor.name=Phosphor Dust
|
||||
item.techreborn.dust.Platinum.name=Platinum Dust
|
||||
item.techreborn.dust.Pyrite.name=Pyrite Dust
|
||||
item.techreborn.dust.Pyrope.name=Pyrope Dust
|
||||
item.techreborn.dust.RedGarnet.name=RedGarnet Dust
|
||||
item.techreborn.dust.Redrock.name=Redrock Dust
|
||||
item.techreborn.dust.Ruby.name=Ruby Dust
|
||||
item.techreborn.dust.Saltpeter.name=Saltpeter Dust
|
||||
item.techreborn.dust.Sapphire.name=Sapphire Dust
|
||||
item.techreborn.dust.Silver.name=Silver Dust
|
||||
item.techreborn.dust.Sodalite.name=Sodalite Dust
|
||||
item.techreborn.dust.Spessartine.name=Spessartine Dust
|
||||
item.techreborn.dust.Sphalerite.name=Sphalerite Dust
|
||||
item.techreborn.dust.Steel.name=Steel Dust
|
||||
item.techreborn.dust.Sulfur.name=Sulfur Dust
|
||||
item.techreborn.dust.Tin.name=Tin Dust
|
||||
item.techreborn.dust.Titanium.name=Titanium Dust
|
||||
item.techreborn.dust.Tungsten.name=Tungsten Dust
|
||||
item.techreborn.dust.Uranium.name=Uranium Dust
|
||||
item.techreborn.dust.Uvarovite.name=Uvarovite Dust
|
||||
item.techreborn.dust.YellowGarnet.name=YellowGarnet Dust
|
||||
item.techreborn.dust.Zinc.name=Zinc Dust
|
||||
|
||||
#Gems
|
||||
item.techreborn.gem.Ruby.name=Ruby
|
||||
item.techreborn.gem.Sapphire.name=Sapphire
|
||||
item.techreborn.gem.GreenSapphire.name=Green Sapphire
|
||||
item.techreborn.gem.Olivine.name=Olivine
|
||||
item.techreborn.gem.RedGarnet.name=Red Garnet
|
||||
item.techreborn.gem.YellowGarnet.name=Yellow Garnet
|
||||
|
||||
#Ingots
|
||||
item.techreborn.ingot.IridiumAlloy.name=Iridium Alloy
|
||||
item.techreborn.ingot.HotTungstenSteel.name=Hot Tungsten Steel
|
||||
item.techreborn.ingot.TungstenSteel.name=Tungsten Steel
|
||||
item.techreborn.ingot.Iridium.name=Iridium Ingot
|
||||
item.techreborn.ingot.Silver.name=Silver Ingot
|
||||
item.techreborn.ingot.Aluminium.name=Aluminium Ingot
|
||||
item.techreborn.ingot.Titanium.name=Titanium Ingot
|
||||
item.techreborn.ingot.Chrome.name=Chrome Ingot
|
||||
item.techreborn.ingot.Electrum.name=Electrum Ingot
|
||||
item.techreborn.ingot.Tungsten.name=Tungsten Ingot
|
||||
item.techreborn.ingot.Lead.name=Lead Ingot
|
||||
item.techreborn.ingot.Zinc.name=Zinc Ingot
|
||||
item.techreborn.ingot.Brass.name=Brass Ingot
|
||||
item.techreborn.ingot.Steel.name=Steel Ingot
|
||||
item.techreborn.ingot.Platinum.name=Platinum Ingot
|
||||
item.techreborn.ingot.Nickel.name=Nickel Ingot
|
||||
item.techreborn.ingot.Invar.name=Invar Ingot
|
||||
|
||||
#Parts
|
||||
item.techreborn.part.LazuriteChunk.name=Lazurite Chunk
|
||||
item.techreborn.part.SiliconPlate.name=Silicon Plate
|
||||
item.techreborn.part.MagnaliumPlate.name=Magnalium Plate
|
||||
item.techreborn.part.EnergeyFlowCircuit.name=Energey Flow Circuit
|
||||
item.techreborn.part.DataControlCircuit.name=Data Control Circuit
|
||||
item.techreborn.part.SuperConductor.name=SuperConductor
|
||||
item.techreborn.part.DataStorageCircuit.name=Data Storage Circuit
|
||||
item.techreborn.part.ComputerMonitor.name=Computer Monitor
|
||||
item.techreborn.part.DiamondSawBlade.name=Diamond Saw Blade
|
||||
item.techreborn.part.DiamondGrinder.name=Diamond Grinder
|
||||
item.techreborn.part.KanthalHeatingCoil.name=Kanthal Heating Coil
|
||||
item.techreborn.part.NichromeHeatingCoil.name=Nichrome Heating Coil
|
||||
item.techreborn.part.CupronickelHeatingCoil.name=Cupronickel Heating Coil
|
||||
item.techreborn.part.MachineParts.name=Machine Parts
|
||||
item.techreborn.part.WolframiamGrinder.name=Wolframiam Grinder
|
||||
item.techreborn.part.AluminiumMachineHull.name=Aluminium Machine Hull
|
||||
item.techreborn.part.BronzeMachineHull.name=Bronze Machine Hull
|
||||
item.techreborn.part.SteelMachineHull.name=Steel Machine Hull
|
||||
item.techreborn.part.TitaniumMachineHull.name=Titanium Machine Hull
|
||||
|
||||
|
|
Loading…
Reference in a new issue