// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemCornerSlope.java
// public class ItemCornerSlope extends ItemBlock 
// {
// 	public ItemCornerSlope(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockCornerSlope)
// 			{
// 				if(!state.getValue(BlockCornerSlope.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockCornerSlope.FACING, state.getValue(BlockCornerSlope.FACING)).withProperty(BlockCornerSlope.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemHandrail.java
// public class ItemHandrail extends ItemBlock
// {
// 	public ItemHandrail(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		ItemStack stack = player.getHeldItem(hand);
// 		TileEntity tileEntity = worldIn.getTileEntity(pos);
// 		if(tileEntity instanceof Railable)
// 		{
// 			Railable railable = (Railable) tileEntity;
// 			if(!railable.isRailAttached())
// 			{
// 				railable.setRailAttached();
// 				worldIn.markBlockRangeForRenderUpdate(pos, pos);
// 				stack.shrink(1);
// 				return EnumActionResult.SUCCESS;
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemSlope.java
// public class ItemSlope extends ItemBlock 
// {
// 	public ItemSlope(Block block) 
// 	{
// 		super(block);
// 	}
// 	
// 	public static void initModel()
// 	{
// 		ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(ModBlocks.SLOPE), 0, BakedModelSlope.BAKED_MODEL);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockSlope)
// 			{
// 				if(!state.getValue(BlockSlope.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockSlope.FACING, state.getValue(BlockSlope.FACING)).withProperty(BlockSlope.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemStair.java
// public class ItemStair extends ItemBlock 
// {
// 	public ItemStair(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockStair)
// 			{
// 				if(!state.getValue(BlockStair.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockStair.FACING, state.getValue(BlockStair.FACING)).withProperty(BlockStair.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }


import com.mrcrayfish.skateboarding.block.*;
import com.mrcrayfish.skateboarding.item.ItemCornerSlope;
import com.mrcrayfish.skateboarding.item.ItemHandrail;
import com.mrcrayfish.skateboarding.item.ItemSlope;
import com.mrcrayfish.skateboarding.item.ItemStair;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;
package com.mrcrayfish.skateboarding.init;


public class ModBlocks
{
	public static final BlockSlope SLOPE;
	public static final Block CORNER_SLOPE;
	public static final Block STAIR;
	public static final Block HANDRAIL;
	public static final Block FLAT_BAR;
	
	static
	{
		SLOPE = new BlockSlope(Material.WOOD);
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemCornerSlope.java
// public class ItemCornerSlope extends ItemBlock 
// {
// 	public ItemCornerSlope(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockCornerSlope)
// 			{
// 				if(!state.getValue(BlockCornerSlope.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockCornerSlope.FACING, state.getValue(BlockCornerSlope.FACING)).withProperty(BlockCornerSlope.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemHandrail.java
// public class ItemHandrail extends ItemBlock
// {
// 	public ItemHandrail(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		ItemStack stack = player.getHeldItem(hand);
// 		TileEntity tileEntity = worldIn.getTileEntity(pos);
// 		if(tileEntity instanceof Railable)
// 		{
// 			Railable railable = (Railable) tileEntity;
// 			if(!railable.isRailAttached())
// 			{
// 				railable.setRailAttached();
// 				worldIn.markBlockRangeForRenderUpdate(pos, pos);
// 				stack.shrink(1);
// 				return EnumActionResult.SUCCESS;
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemSlope.java
// public class ItemSlope extends ItemBlock 
// {
// 	public ItemSlope(Block block) 
// 	{
// 		super(block);
// 	}
// 	
// 	public static void initModel()
// 	{
// 		ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(ModBlocks.SLOPE), 0, BakedModelSlope.BAKED_MODEL);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockSlope)
// 			{
// 				if(!state.getValue(BlockSlope.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockSlope.FACING, state.getValue(BlockSlope.FACING)).withProperty(BlockSlope.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }
// 
// Path: src/main/java/com/mrcrayfish/skateboarding/item/ItemStair.java
// public class ItemStair extends ItemBlock 
// {
// 	public ItemStair(Block block) 
// 	{
// 		super(block);
// 	}
// 
// 	@Override
// 	public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
// 	{
// 		if(facing == EnumFacing.UP)
// 		{
// 			IBlockState state = worldIn.getBlockState(pos);
// 			Block block = state.getBlock();
// 			if(block instanceof BlockStair)
// 			{
// 				if(!state.getValue(BlockStair.STACKED))
// 				{
// 					worldIn.setBlockState(pos, block.getDefaultState().withProperty(BlockStair.FACING, state.getValue(BlockStair.FACING)).withProperty(BlockStair.STACKED, true));
// 					return EnumActionResult.SUCCESS;
// 				}
// 			}
// 		}
// 		return super.onItemUse(player, worldIn, pos, hand, facing, hitX, hitY, hitZ);
// 	}
// }


// Path: src/main/java/com/mrcrayfish/skateboarding/init/ModBlocks.java
import com.mrcrayfish.skateboarding.block.*;
import com.mrcrayfish.skateboarding.item.ItemCornerSlope;
import com.mrcrayfish.skateboarding.item.ItemHandrail;
import com.mrcrayfish.skateboarding.item.ItemSlope;
import com.mrcrayfish.skateboarding.item.ItemStair;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;

package com.mrcrayfish.skateboarding.init;


public class ModBlocks
{
	public static final BlockSlope SLOPE;
	public static final Block CORNER_SLOPE;
	public static final Block STAIR;
	public static final Block HANDRAIL;
	public static final Block FLAT_BAR;
	
	static
	{
		SLOPE = new BlockSlope(Material.WOOD);
		CORNER_SLOPE = new BlockCornerSlope(Material.ROCK);