@Override public void onConnect(Node node) { TileEntityCrusher te = getTileEntity(); if (te != null) { te.controllingComputers++; te.computerOn = true; } }
@Override public ManagedEnvironment createEnvironment(World w, BlockPos bp, EnumFacing facing) { TileEntity te = w.getTileEntity(bp); if (te instanceof TileEntityCrusher) { TileEntityCrusher crush = (TileEntityCrusher) te; TileEntityCrusher master = crush.master(); if (master != null && crush.isRedstonePos()) return new CrusherEnvironment(w, master.getPos(), TileEntityCrusher.class); } return null; }