Revert naming change to planks, inconsistant plus breaks textures

This commit is contained in:
Adubbz 2013-04-24 06:49:47 +10:00
parent 5e19939047
commit e23d1cec4b
2 changed files with 29 additions and 29 deletions

View File

@ -12,7 +12,7 @@ import biomesoplenty.BiomesOPlenty;
public class BlockBOPPlank extends Block
{
private static final String[] woodTypes = new String[] {"acaciaPlank", "cherryPlank", "darkPlank", "firPlank", "holyPlank", "magicPlank", "mangrovePlank", "palmPlank", "redwoodPlank", "willowPlank", "bambooThatching"};
private static final String[] woodTypes = new String[] {"acaciaplank", "cherryplank", "darkplank", "firPlank", "holyplank", "magicplank", "mangroveplank", "palmplank", "redwoodplank", "willowplank", "bamboothatching"};
private Icon[] textures;
public BlockBOPPlank(int blockID)

View File

@ -1,28 +1,28 @@
package biomesoplenty.items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemBOPMud extends ItemBlock
{
private static final String[] types = new String[] {"mud", "quicksand"};
public ItemBOPMud(int par1)
{
super(par1);
setMaxDamage(0);
setHasSubtypes(true);
}
@Override
public int getMetadata(int meta)
{
return meta & 15;
}
@Override
public String getUnlocalizedName(ItemStack itemStack)
{
return types[itemStack.getItemDamage()];
}
}
package biomesoplenty.items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemBOPMud extends ItemBlock
{
private static final String[] types = new String[] {"mud", "quicksand"};
public ItemBOPMud(int par1)
{
super(par1);
setMaxDamage(0);
setHasSubtypes(true);
}
@Override
public int getMetadata(int meta)
{
return meta & 15;
}
@Override
public String getUnlocalizedName(ItemStack itemStack)
{
return types[itemStack.getItemDamage()];
}
}