ProcessingOutput

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import mods.createtweaker.ProcessingOutput;

Constructors

new(stack as ItemStack, chance as float)
script.zs
// new ProcessingOutput(stack as ItemStack, chance as float);
new ProcessingOutput(myItemStack, myFloat);

Parameters:

stack Type: ItemStack
chance Type: float

Members

Getter
script.zs
// ProcessingOutput.chance as float
myProcessingOutput.chance

Return Type: float

chance() as float
script.zs
// ProcessingOutput.chance() as float;
myProcessingOutput.chance();

Return Type: float

Getter
script.zs
// ProcessingOutput.random as Random
myProcessingOutput.random

Return Type: Random

rollOutput() as IItemStack
script.zs
// ProcessingOutput.rollOutput() as IItemStack;
myProcessingOutput.rollOutput();

Return Type: IItemStack

Getter
script.zs
// ProcessingOutput.stack as IItemStack
myProcessingOutput.stack

Return Type: IItemStack

stack() as IItemStack
script.zs
// ProcessingOutput.stack() as IItemStack;
myProcessingOutput.stack();

Return Type: IItemStack