blob: cf7bf86c4259e5fdeefbbef4035fb38124428144 [file] [log] [blame] [raw]
package li.cil.oc.api.scala;
import li.cil.oc.api.{ IComputerContext => IJavaComputerContext }
import net.minecraft.world.World
trait IComputerContext extends IJavaComputerContext {
def world: World
def signal(name: String, args: Any*): Boolean
def component[T <: AnyRef](id: Int): T
// ----------------------------------------------------------------------- //
def getWorld = world
def signal(name: String, args: Array[Object]): Boolean =
signal(name, args: _*)
override def getComponent[T >: Nothing](id: Int) = component(id)
}