// Path: src/main/java/com/team/kalstuff/tileentity/TileEntityMoonFlower.java
// public class TileEntityMoonFlower extends TileEntity implements ITickable
// {
// 	@Override
// 	public void update()
// 	{
// 		if (this.world != null && !this.world.isRemote && world.getWorldTime() >= 12800 || world.getWorldTime() < 23000)
// 		{
// 			this.blockType = this.getBlockType();
// 
// 			if (this.blockType instanceof BlockMoonFlower)
// 				((BlockMoonFlower) this.blockType).checkSky(this.world, this.pos);
// 		}
// 	}
// }


import java.util.Random;
import com.team.kalstuff.tileentity.TileEntityMoonFlower;
import net.minecraft.block.BlockBush;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.SoundType;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
package com.team.kalstuff.block;




public class BlockMoonFlower extends BlockBush implements ITileEntityProvider
{
	public static final PropertyInteger NIGHT = PropertyInteger.create("night", 0, 1);

	public BlockMoonFlower(float light, String name)
	{
		BlockKalStuff.setupBlock(this, name);
		this.setDefaultState(this.blockState.getBaseState().withProperty(NIGHT, Integer.valueOf(0)));
		this.setLightLevel((light) / 16.0f);
		this.setSoundType(SoundType.PLANT);
		// we must set the creative tab to null here so all varieties will not show up
		// in the inventory
		this.setCreativeTab(null);
	}

	public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
	{
		super.breakBlock(worldIn, pos, state);
		worldIn.removeTileEntity(pos);
	}

	public TileEntity createNewTileEntity(World worldIn, int meta)
	{
// Path: src/main/java/com/team/kalstuff/tileentity/TileEntityMoonFlower.java
// public class TileEntityMoonFlower extends TileEntity implements ITickable
// {
// 	@Override
// 	public void update()
// 	{
// 		if (this.world != null && !this.world.isRemote && world.getWorldTime() >= 12800 || world.getWorldTime() < 23000)
// 		{
// 			this.blockType = this.getBlockType();
// 
// 			if (this.blockType instanceof BlockMoonFlower)
// 				((BlockMoonFlower) this.blockType).checkSky(this.world, this.pos);
// 		}
// 	}
// }


// Path: src/main/java/com/team/kalstuff/block/BlockMoonFlower.java
import java.util.Random;
import com.team.kalstuff.tileentity.TileEntityMoonFlower;
import net.minecraft.block.BlockBush;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.SoundType;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

package com.team.kalstuff.block;




public class BlockMoonFlower extends BlockBush implements ITileEntityProvider
{
	public static final PropertyInteger NIGHT = PropertyInteger.create("night", 0, 1);

	public BlockMoonFlower(float light, String name)
	{
		BlockKalStuff.setupBlock(this, name);
		this.setDefaultState(this.blockState.getBaseState().withProperty(NIGHT, Integer.valueOf(0)));
		this.setLightLevel((light) / 16.0f);
		this.setSoundType(SoundType.PLANT);
		// we must set the creative tab to null here so all varieties will not show up
		// in the inventory
		this.setCreativeTab(null);
	}

	public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
	{
		super.breakBlock(worldIn, pos, state);
		worldIn.removeTileEntity(pos);
	}

	public TileEntity createNewTileEntity(World worldIn, int meta)
	{
		return new TileEntityMoonFlower();