Finished New Block Texture Layout, Renamed a few strings to make texture filenames smoother

This commit is contained in:
oitsjustjose 2013-06-23 14:15:35 -05:00
commit e1476e1cfd
167 changed files with 53 additions and 264 deletions

View file

@ -8,8 +8,12 @@ import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.util.MathHelper;
public class ItemBlockStones extends ItemBlock {
public static String[] STONE_TYPES = new String[] {"Smooth Anorthosite", "Anorthosite", "Smooth Limestone", "Limestone", "Smooth Marble", "Marble", "Smooth Migmatite", "Migmatite",
"Smooth Orthogneiss", "Orthogneiss", "Smooth Slate", "Slate", "Smooth Travertine", "Travertine"};
public ItemBlockStones(int par1) {
super(par1);
@ -17,25 +21,11 @@ public class ItemBlockStones extends ItemBlock {
setHasSubtypes(true);
}
public String getUnlocalizedName(ItemStack i){
switch(i.getItemDamage()){
case 0:return "AnorthositeSmooth";
case 1:return "Anorthosite";
case 2:return "LimestoneSmooth";
case 3:return "Limestone";
case 4:return "MarbleSmooth";
case 5:return "Marble";
case 6:return "MigmatiteSmooth";
case 7:return "Migmatite";
case 8:return "OrthogneissSmooth";
case 9:return "Orthogneiss";
case 10:return "SlateSmooth";
case 11:return "Slate";
case 12:return "TravertineSmooth";
case 13:return "Travertine";
default:return "";
}
}
@Override
public String getUnlocalizedName(ItemStack itemStack) {
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, STONE_TYPES.length);
return super.getUnlocalizedName() + STONE_TYPES[meta];
}
public int getMetadata(int par1)
{