blob: a925f0f418f3738766df13ec74cbc8f4f02fc0da [file] [log] [blame] [raw]
package li.cil.oc.common.tileentity
import li.cil.oc.api.network.{Analyzable, Visibility}
import li.cil.oc.{Blocks, api, common}
import net.minecraft.entity.player.EntityPlayer
class Cable extends Environment with Analyzable with PassiveNode {
val node = api.Network.newNode(this, Visibility.None).create()
def onAnalyze(player: EntityPlayer, side: Int, hitX: Float, hitY: Float, hitZ: Float) = null
def neighbors = common.block.Cable.neighbors(world, x, y, z)
override def canUpdate = false
override def validate() {
super.validate()
world.scheduleBlockUpdateFromLoad(x, y, z, Blocks.cable.parent.blockID, 0, 0)
}
override def getRenderBoundingBox = common.block.Cable.bounds(world, x, y, z).offset(x, y, z)
}