use of mcjty.rftoolscontrol.logic.compiled.CompiledCard in project RFToolsControl by McJty.
the class ProcessorTileEntity method signal.
@Override
public int signal(Tuple location) {
int cnt = 0;
for (int i = 0; i < cardInfo.length; i++) {
CardInfo info = cardInfo[i];
CompiledCard compiledCard = info.getCompiledCard();
if (compiledCard != null) {
for (CompiledEvent event : compiledCard.getEvents(Opcodes.EVENT_GFX_SELECT)) {
int index = event.getIndex();
runOrQueueEvent(i, event, null, Parameter.builder().type(ParameterType.PAR_TUPLE).value(ParameterValue.constant(location)).build());
cnt++;
}
}
}
return cnt;
}
use of mcjty.rftoolscontrol.logic.compiled.CompiledCard in project RFToolsControl by McJty.
the class RunningProgram method opcodes.
private List<CompiledOpcode> opcodes(ProcessorTileEntity processor) {
if (opcodeCache == null) {
CompiledCard card = processor.getCompiledCard(cardIndex);
opcodeCache = card.getOpcodes();
}
return opcodeCache;
}
Aggregations