content: package thebetweenlands.common.block.plant;
  
  import java.util.List;
  
  import net.minecraft.block.state.IBlockState;
  import net.minecraft.client.resources.I18n;
  import net.minecraft.client.util.ITooltipFlag;
  import net.minecraft.item.ItemStack;
  import net.minecraft.util.math.BlockPos;
  import net.minecraft.world.World;
  import net.minecraftforge.fml.relauncher.Side;
  import net.minecraftforge.fml.relauncher.SideOnly;
  import thebetweenlands.client.handler.ItemTooltipHandler;
  import thebetweenlands.common.block.farming.BlockGenericDugSoil;
  
  public class BlockSludgeDungeonPlant extends BlockPlant {
  	@Override
  	public boolean isFarmable(World world, BlockPos pos, IBlockState state) {
  		IBlockState soil = world.getBlockState(pos.down());
  		if(soil.getBlock() instanceof BlockGenericDugSoil) {
  			return soil.getValue(BlockGenericDugSoil.FOGGED);
  		}
  		return false;
  	}
  	
  	@SideOnly(Side.CLIENT)
  	@Override
  	public void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
  		tooltip.addAll(ItemTooltipHandler.splitTooltip(I18n.format("tooltip.bl.sludge_dungeon_plant.mist"), 0));
  	}
  }
  