|
|
@ -4,6 +4,7 @@ import com.simon816.j65el02.Bus;
|
|
|
|
import com.simon816.j65el02.Cpu;
|
|
|
|
import com.simon816.j65el02.Cpu;
|
|
|
|
import com.simon816.j65el02.device.*;
|
|
|
|
import com.simon816.j65el02.device.*;
|
|
|
|
import net.brokenmoon.redcontrol.RedControl;
|
|
|
|
import net.brokenmoon.redcontrol.RedControl;
|
|
|
|
|
|
|
|
import net.brokenmoon.redcontrol.api.IRedBusConnectable;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
|
|
import net.minecraft.block.entity.BlockEntity;
|
|
|
|
import net.minecraft.block.entity.BlockEntity;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
@ -15,7 +16,7 @@ import java.util.Timer;
|
|
|
|
import java.util.TimerTask;
|
|
|
|
import java.util.TimerTask;
|
|
|
|
import java.util.concurrent.Semaphore;
|
|
|
|
import java.util.concurrent.Semaphore;
|
|
|
|
|
|
|
|
|
|
|
|
public class CpuEntity extends BlockEntity implements Runnable{
|
|
|
|
public class CpuEntity extends BlockEntity implements IRedBusConnectable, Runnable{
|
|
|
|
|
|
|
|
|
|
|
|
static long interruptTimer = 50L;
|
|
|
|
static long interruptTimer = 50L;
|
|
|
|
//Adjust as needed to match original clock speed
|
|
|
|
//Adjust as needed to match original clock speed
|
|
|
|