ProcessingOutput

Link to processingoutput

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.createtweaker.ProcessingOutput;
ZenScript
Copy
new ProcessingOutput(stack as ItemStack, chance as float) as ProcessingOutput
new ProcessingOutput(<item:minecraft:dirt>, 1.0);
ParameterType
Parameter
stack
Type
ItemStack
Parameter
chance
Type
float

Name: getChance

Return Type: float

ZenScript
Copy
// ProcessingOutput.getChance() as float

myProcessingOutput.getChance();

Name: getStack

Return Type: IItemStack

ZenScript
Copy
// ProcessingOutput.getStack() as IItemStack

myProcessingOutput.getStack();

Name: rollOutput

Return Type: IItemStack

ZenScript
Copy
// ProcessingOutput.rollOutput() as IItemStack

myProcessingOutput.rollOutput();
NameTypeHas GetterHas Setter
Name
chance
Type
float
Has Getter
true
Has Setter
false
Name
random
Type
Random
Has Getter
true
Has Setter
false
Name
stack
Type
IItemStack
Has Getter
true
Has Setter
false