package net.shadowfacts.asmr.program.blocks import net.minecraft.util.Identifier import net.shadowfacts.asmr.ASMR import net.shadowfacts.asmr.program.* import net.shadowfacts.asmr.program.execution.SimpleExecutableBlock /** * @author shadowfacts */ class PrintBlock( val type: ProgramType ): SimpleExecutableBlock( Identifier(ASMR.modid, "print") ) { val input = ProgramBlockInput(Identifier(ASMR.modid, "print.input"), type, this) override val inputs: Array> = arrayOf(input) override val outputs: Array> = arrayOf() override fun execute() { println(input.value) } }