blob: f796033a560e80a35a69ca30c981dea668834a23 [file] [log] [blame] [raw]
package li.cil.oc.api.scala
import li.cil.oc.api.{ IBlockDriver => IJavaBlockDriver }
import net.minecraft.world.World
trait IBlockDriver extends IJavaBlockDriver with IDriver {
def component(world: World, x: Int, y: Int, z: Int): Option[AnyRef]
// ----------------------------------------------------------------------- //
def getComponent(world: World, x: Int, y: Int, z: Int): Object =
component(world, x, y, z).orNull
}