package li.cil.oc.integration.vanilla

import java.util

import li.cil.oc.api
import net.minecraft.world

import scala.collection.convert.WrapAsScala._

object ConverterWorld extends api.driver.Converter {
  override def convert(value: AnyRef, output: util.Map[AnyRef, AnyRef]) =
    value match {
      case world: world.World =>
        output += "oc:flatten" -> world.provider
      case _ =>
    }
}
