Revert naming change to planks, inconsistant plus breaks textures
This commit is contained in:
parent
5e19939047
commit
e23d1cec4b
2 changed files with 29 additions and 29 deletions
|
@ -12,7 +12,7 @@ import biomesoplenty.BiomesOPlenty;
|
||||||
|
|
||||||
public class BlockBOPPlank extends Block
|
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;
|
private Icon[] textures;
|
||||||
|
|
||||||
public BlockBOPPlank(int blockID)
|
public BlockBOPPlank(int blockID)
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
package biomesoplenty.items;
|
package biomesoplenty.items;
|
||||||
|
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
public class ItemBOPMud extends ItemBlock
|
public class ItemBOPMud extends ItemBlock
|
||||||
{
|
{
|
||||||
private static final String[] types = new String[] {"mud", "quicksand"};
|
private static final String[] types = new String[] {"mud", "quicksand"};
|
||||||
|
|
||||||
public ItemBOPMud(int par1)
|
public ItemBOPMud(int par1)
|
||||||
{
|
{
|
||||||
super(par1);
|
super(par1);
|
||||||
setMaxDamage(0);
|
setMaxDamage(0);
|
||||||
setHasSubtypes(true);
|
setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMetadata(int meta)
|
public int getMetadata(int meta)
|
||||||
{
|
{
|
||||||
return meta & 15;
|
return meta & 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUnlocalizedName(ItemStack itemStack)
|
public String getUnlocalizedName(ItemStack itemStack)
|
||||||
{
|
{
|
||||||
return types[itemStack.getItemDamage()];
|
return types[itemStack.getItemDamage()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue