Rename BlockBOPStairs to BlockBOPWoodStairs

This commit is contained in:
Cheeserolls 2015-05-23 15:38:42 +01:00
parent 4b6e4effc7
commit b36c0b0700
3 changed files with 20 additions and 20 deletions

View file

@ -19,7 +19,7 @@ import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemBlock;
public class BlockBOPStairs extends BlockStairs implements IBOPBlock
public class BlockBOPWoodStairs extends BlockStairs implements IBOPBlock
{
// implement IBOPBlock
@ -36,8 +36,8 @@ public class BlockBOPStairs extends BlockStairs implements IBOPBlock
public String getStateName(IBlockState state) {return "";}
// Map from woods to BlockBOPStairs instance and back
private static Map<BOPWoods, BlockBOPStairs> variantToBlock = new HashMap<BOPWoods, BlockBOPStairs>();
public static BlockBOPStairs getBlock(BOPWoods wood)
private static Map<BOPWoods, BlockBOPWoodStairs> variantToBlock = new HashMap<BOPWoods, BlockBOPWoodStairs>();
public static BlockBOPWoodStairs getBlock(BOPWoods wood)
{
return variantToBlock.get(wood);
}
@ -47,7 +47,7 @@ public class BlockBOPStairs extends BlockStairs implements IBOPBlock
return this.wood;
}
public BlockBOPStairs(BOPWoods wood)
public BlockBOPWoodStairs(BOPWoods wood)
{
super(BlockBOPPlanks.paging.getVariantState(wood));
this.setHarvestLevel("axe", 0);

View file

@ -133,20 +133,20 @@ public class ModBlocks
sapling_2 = registerBlock( BlockBOPSapling.paging.getBlock(2), "sapling_2");
// stairs have no variant metadata, use a new BlockBOPStairs instance for each (note there's no giant_flower_stairs or dead_stairs)
sacred_oak_stairs = registerBlock( new BlockBOPStairs(BOPWoods.SACRED_OAK), "sacred_oak_stairs" );
cherry_stairs = registerBlock( new BlockBOPStairs(BOPWoods.CHERRY), "cherry_stairs" );
dark_stairs = registerBlock( new BlockBOPStairs(BOPWoods.DARK), "dark_stairs" );
fir_stairs = registerBlock( new BlockBOPStairs(BOPWoods.FIR), "fir_stairs" );
ethereal_stairs = registerBlock( new BlockBOPStairs(BOPWoods.ETHEREAL), "ethereal_stairs" );
magic_stairs = registerBlock( new BlockBOPStairs(BOPWoods.MAGIC), "magic_stairs" );
mangrove_stairs = registerBlock( new BlockBOPStairs(BOPWoods.MANGROVE), "mangrove_stairs" );
palm_stairs = registerBlock( new BlockBOPStairs(BOPWoods.PALM), "palm_stairs" );
redwood_stairs = registerBlock( new BlockBOPStairs(BOPWoods.REDWOOD), "redwood_stairs" );
willow_stairs = registerBlock( new BlockBOPStairs(BOPWoods.WILLOW), "willow_stairs" );
pine_stairs = registerBlock( new BlockBOPStairs(BOPWoods.PINE), "pine_stairs" );
hellbark_stairs = registerBlock( new BlockBOPStairs(BOPWoods.HELLBARK), "hellbark_stairs" );
jacaranda_stairs = registerBlock( new BlockBOPStairs(BOPWoods.JACARANDA), "jacaranda_stairs" );
mahogany_stairs = registerBlock( new BlockBOPStairs(BOPWoods.MAHOGANY), "mahogany_stairs" );
sacred_oak_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.SACRED_OAK), "sacred_oak_stairs" );
cherry_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.CHERRY), "cherry_stairs" );
dark_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.DARK), "dark_stairs" );
fir_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.FIR), "fir_stairs" );
ethereal_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.ETHEREAL), "ethereal_stairs" );
magic_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.MAGIC), "magic_stairs" );
mangrove_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.MANGROVE), "mangrove_stairs" );
palm_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.PALM), "palm_stairs" );
redwood_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.REDWOOD), "redwood_stairs" );
willow_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.WILLOW), "willow_stairs" );
pine_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.PINE), "pine_stairs" );
hellbark_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.HELLBARK), "hellbark_stairs" );
jacaranda_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.JACARANDA), "jacaranda_stairs" );
mahogany_stairs = registerBlock( new BlockBOPWoodStairs(BOPWoods.MAHOGANY), "mahogany_stairs" );
// fences have no variant metadata, use a new BlockBOPFence instance for each (note there's no giant_flower_fence or dead_fence)
sacred_oak_fence = registerBlock( new BlockBOPFence(BOPWoods.SACRED_OAK), "sacred_oak_fence" );

View file

@ -104,7 +104,7 @@ public class ModCrafting
if (!wood.hasPlanks()) {continue;}
GameRegistry.addShapelessRecipe(BlockBOPPlanks.paging.getVariantItem(wood, 4), BlockBOPLog.paging.getVariantItem(wood));
GameRegistry.addShapedRecipe(BlockBOPHalfWoodSlab.paging.getVariantItem(wood, 6), new Object[] {"###", '#', BlockBOPPlanks.paging.getVariantItem(wood)});
GameRegistry.addShapedRecipe(new ItemStack(BlockBOPStairs.getBlock(wood), 4), new Object[] {"# ", "## ", "###", '#', BlockBOPPlanks.paging.getVariantItem(wood)});
GameRegistry.addShapedRecipe(new ItemStack(BlockBOPWoodStairs.getBlock(wood), 4), new Object[] {"# ", "## ", "###", '#', BlockBOPPlanks.paging.getVariantItem(wood)});
GameRegistry.addShapedRecipe(new ItemStack(BlockBOPDoor.getBlock(wood).getDoorItem(), 3), new Object[] {"##", "##", "##", '#', BlockBOPPlanks.paging.getVariantItem(wood)});
GameRegistry.addShapedRecipe(new ItemStack(BlockBOPFence.getBlock(wood), 3), new Object[] {"W#W", "W#W", '#', Items.stick, 'W', BlockBOPPlanks.paging.getVariantItem(wood)});
GameRegistry.addShapedRecipe(new ItemStack(BlockBOPFenceGate.getBlock(wood), 1), new Object[] {"#W#", "#W#", '#', Items.stick, 'W', BlockBOPPlanks.paging.getVariantItem(wood)});
@ -335,7 +335,7 @@ public class ModCrafting
{
OreDictionary.registerOre("plankWood", BlockBOPPlanks.paging.getVariantItem(wood));
OreDictionary.registerOre("slabWood", BlockBOPHalfWoodSlab.paging.getVariantItem(wood));
OreDictionary.registerOre("stairWood", new ItemStack(BlockBOPStairs.getBlock(wood)));
OreDictionary.registerOre("stairWood", new ItemStack(BlockBOPWoodStairs.getBlock(wood)));
OreDictionary.registerOre("fenceWood", new ItemStack(BlockBOPFence.getBlock(wood)));
OreDictionary.registerOre("fenceGateWood", new ItemStack(BlockBOPFenceGate.getBlock(wood)));
}