| package li.cil.oc.common.tileentity |
| import li.cil.oc.api.network.Visibility |
| import li.cil.oc.util.Color |
| class Cable extends traits.Environment with traits.NotAnalyzable with traits.ImmibisMicroblock with traits.Colored { |
| val node = api.Network.newNode(this, Visibility.None).create() |
| override protected def onColorChanged() { |
| if (world != null && isServer) { |
| api.Network.joinOrCreateNetwork(this) |
| override def canUpdate = false |
| override def getRenderBoundingBox = common.block.Cable.bounds(world, x, y, z).offset(x, y, z) |