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 Copyimport mods.createtweaker.ProcessingOutput;
Constructors
Link to constructors
ZenScript Copynew ProcessingOutput(stack as ItemStack, chance as float) as ProcessingOutput
new ProcessingOutput(<item:minecraft:dirt>, 1.0);
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Parameter chance | Type float |
Methods
Link to methods
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();
Properties
Link to properties
Name | Type | Has Getter | Has 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 |