// Path: src/main/java/charcoalPit/blocks/BlocksRegistry.java
// public class BlocksRegistry {
// 	
// 	public static BlockLogPile logPile=new BlockLogPile();
// 	public static BlockCoke cokeBlock=new BlockCoke();
// 	public static BlockActivePile activeLogPile=new BlockActivePile(Material.WOOD, "active_log_pile", false);
// 	public static BlockActivePile activeCoalPile=new BlockActivePile(Material.ROCK, "active_coal_pile", true);
// 	public static BlockAshPile charcoalPile=new BlockAshPile("charcoal_pile", false);
// 	public static BlockAshPile cokePile=new BlockAshPile("coke_pile", true);
// 	public static BlockCreosoteCollector stoneCollector=new BlockCreosoteCollector("stone_creosote_collector", false);
// 	public static BlockCreosoteCollector brickCollector=new BlockCreosoteCollector("brick_creosote_collector", true);
// 	public static BlockCreosoteCollector netherCollector=new BlockCreosoteCollector("nether_creosote_collector", true);
// 	public static BlockPotteryKiln potteryKiln=new BlockPotteryKiln("pottery_kiln");
// 	public static BlockCeramicPot ceramicPot=new BlockCeramicPot("ceramic_pot");
// 	public static BlockClayPot clayPot=new BlockClayPot();
// 	public static BlockSmeltedPot brokenPot=new BlockSmeltedPot();
// 	public static BlockDyedPot[] dyedPot=new BlockDyedPot[16];
// 	public static BlockThatch thatch=new BlockThatch();
// 	public static BlockBloomeryHatch hatch=new BlockBloomeryHatch();
// 	public static BlockBronzeReinforcedBrick reinforcedBrick=new BlockBronzeReinforcedBrick();
// 	public static BlockBloomeryOreLayer oreLayer=new BlockBloomeryOreLayer();
// 	public static BlockBloom bloom=new BlockBloom();
// 	public static BlockCustomFurnace furnace=new BlockCustomFurnace();
// 	
// 	static{
// 		for(int i=0;i<16;i++){
// 			dyedPot[i]=new BlockDyedPot("dyed_pot", EnumDyeColor.byMetadata(i));
// 		}
// 	}
// 	
// 	@SubscribeEvent
// 	public static void registerBlocks(RegistryEvent.Register<Block> event){
// 		event.getRegistry().registerAll(logPile, cokeBlock, activeLogPile, activeCoalPile,
// 				charcoalPile, cokePile, stoneCollector, brickCollector, netherCollector, potteryKiln,
// 				ceramicPot, clayPot, brokenPot, thatch, hatch, reinforcedBrick, oreLayer, bloom, furnace);
// 		event.getRegistry().registerAll(dyedPot);
// 		if(FluidsRegistry.BlockCreosote!=null){
// 			event.getRegistry().register(FluidsRegistry.BlockCreosote);
// 		}
// 	}
// 	@SubscribeEvent
// 	@SideOnly(Side.CLIENT)
// 	public static void registerModels(ModelRegistryEvent event){
// 		StateMapperBase mapper=new StateMapperBase() {
// 			
// 			@Override
// 			protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
// 				return new ModelResourceLocation(new ResourceLocation(Constants.MODID, "creosote"), "creosote");
// 			}
// 		};
// 		if(FluidsRegistry.BlockCreosote!=null)
// 			ModelLoader.setCustomStateMapper(FluidsRegistry.BlockCreosote, mapper);
// 	}
// }


import charcoalPit.blocks.BlocksRegistry;
import net.minecraft.block.BlockDoor;
import net.minecraft.block.BlockDoor.EnumDoorHalf;
import net.minecraft.block.BlockDoor.EnumHingePosition;
import net.minecraft.block.BlockTrapDoor;
import net.minecraft.block.BlockTrapDoor.DoorHalf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
package charcoalPit.core;


public class MethodHelper {
	
	public static boolean CharcoalPitIsValidBlock(World world,BlockPos charPos,EnumFacing facing, boolean isCoke){
		IBlockState block=world.getBlockState(charPos.offset(facing));
		if(isCoke&&!CokeOvenIsValidBlock(block))
			return false;
		if(block.getBlock().isFlammable(world, charPos.offset(facing), facing.getOpposite()))
			return false;
		if(block.getBlock()==Blocks.IRON_DOOR||block.getBlock()==Blocks.IRON_TRAPDOOR){
			return block.getBlock()==Blocks.IRON_DOOR?isDoorFacingBlock(world, charPos, facing):isTrapDoorFacingBlock(world, charPos, facing);
		}else{
			return block.isSideSolid(world, charPos.offset(facing), facing.getOpposite());
		}
	}
	public static boolean CokeOvenIsValidBlock(IBlockState block){
// Path: src/main/java/charcoalPit/blocks/BlocksRegistry.java
// public class BlocksRegistry {
// 	
// 	public static BlockLogPile logPile=new BlockLogPile();
// 	public static BlockCoke cokeBlock=new BlockCoke();
// 	public static BlockActivePile activeLogPile=new BlockActivePile(Material.WOOD, "active_log_pile", false);
// 	public static BlockActivePile activeCoalPile=new BlockActivePile(Material.ROCK, "active_coal_pile", true);
// 	public static BlockAshPile charcoalPile=new BlockAshPile("charcoal_pile", false);
// 	public static BlockAshPile cokePile=new BlockAshPile("coke_pile", true);
// 	public static BlockCreosoteCollector stoneCollector=new BlockCreosoteCollector("stone_creosote_collector", false);
// 	public static BlockCreosoteCollector brickCollector=new BlockCreosoteCollector("brick_creosote_collector", true);
// 	public static BlockCreosoteCollector netherCollector=new BlockCreosoteCollector("nether_creosote_collector", true);
// 	public static BlockPotteryKiln potteryKiln=new BlockPotteryKiln("pottery_kiln");
// 	public static BlockCeramicPot ceramicPot=new BlockCeramicPot("ceramic_pot");
// 	public static BlockClayPot clayPot=new BlockClayPot();
// 	public static BlockSmeltedPot brokenPot=new BlockSmeltedPot();
// 	public static BlockDyedPot[] dyedPot=new BlockDyedPot[16];
// 	public static BlockThatch thatch=new BlockThatch();
// 	public static BlockBloomeryHatch hatch=new BlockBloomeryHatch();
// 	public static BlockBronzeReinforcedBrick reinforcedBrick=new BlockBronzeReinforcedBrick();
// 	public static BlockBloomeryOreLayer oreLayer=new BlockBloomeryOreLayer();
// 	public static BlockBloom bloom=new BlockBloom();
// 	public static BlockCustomFurnace furnace=new BlockCustomFurnace();
// 	
// 	static{
// 		for(int i=0;i<16;i++){
// 			dyedPot[i]=new BlockDyedPot("dyed_pot", EnumDyeColor.byMetadata(i));
// 		}
// 	}
// 	
// 	@SubscribeEvent
// 	public static void registerBlocks(RegistryEvent.Register<Block> event){
// 		event.getRegistry().registerAll(logPile, cokeBlock, activeLogPile, activeCoalPile,
// 				charcoalPile, cokePile, stoneCollector, brickCollector, netherCollector, potteryKiln,
// 				ceramicPot, clayPot, brokenPot, thatch, hatch, reinforcedBrick, oreLayer, bloom, furnace);
// 		event.getRegistry().registerAll(dyedPot);
// 		if(FluidsRegistry.BlockCreosote!=null){
// 			event.getRegistry().register(FluidsRegistry.BlockCreosote);
// 		}
// 	}
// 	@SubscribeEvent
// 	@SideOnly(Side.CLIENT)
// 	public static void registerModels(ModelRegistryEvent event){
// 		StateMapperBase mapper=new StateMapperBase() {
// 			
// 			@Override
// 			protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
// 				return new ModelResourceLocation(new ResourceLocation(Constants.MODID, "creosote"), "creosote");
// 			}
// 		};
// 		if(FluidsRegistry.BlockCreosote!=null)
// 			ModelLoader.setCustomStateMapper(FluidsRegistry.BlockCreosote, mapper);
// 	}
// }


// Path: src/main/java/charcoalPit/core/MethodHelper.java
import charcoalPit.blocks.BlocksRegistry;
import net.minecraft.block.BlockDoor;
import net.minecraft.block.BlockDoor.EnumDoorHalf;
import net.minecraft.block.BlockDoor.EnumHingePosition;
import net.minecraft.block.BlockTrapDoor;
import net.minecraft.block.BlockTrapDoor.DoorHalf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;

package charcoalPit.core;


public class MethodHelper {
	
	public static boolean CharcoalPitIsValidBlock(World world,BlockPos charPos,EnumFacing facing, boolean isCoke){
		IBlockState block=world.getBlockState(charPos.offset(facing));
		if(isCoke&&!CokeOvenIsValidBlock(block))
			return false;
		if(block.getBlock().isFlammable(world, charPos.offset(facing), facing.getOpposite()))
			return false;
		if(block.getBlock()==Blocks.IRON_DOOR||block.getBlock()==Blocks.IRON_TRAPDOOR){
			return block.getBlock()==Blocks.IRON_DOOR?isDoorFacingBlock(world, charPos, facing):isTrapDoorFacingBlock(world, charPos, facing);
		}else{
			return block.isSideSolid(world, charPos.offset(facing), facing.getOpposite());
		}
	}
	public static boolean CokeOvenIsValidBlock(IBlockState block){
		if(block.getBlock()==BlocksRegistry.activeCoalPile||block.getBlock()==BlocksRegistry.brickCollector||