SieveRecipe
Link to sieverecipe
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.exnihilosequentia.SieveRecipe;
Methods
Link to methods
Name: addDrop
Sets the item that should drop when sifting
Return Type: SieveRecipe
ZenScript CopySieveRecipe.addDrop(drop as IItemStack) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter drop | Type IItemStack | Description dropped item |
Name: addRoll
Sets the mesh type and the chance, how often the item should drop.
Return Type: SieveRecipe
ZenScript CopySieveRecipe.addRoll(mesh as string, chance as float) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter mesh | Type string | Description mesh type (only valid meshes are allowed) |
Parameter chance | Type float | Description the chance betweet 0 and 1 (greater than 1 is not allowed) |
Name: create
Create a recipe name for the new recipe
Return Type: SieveRecipe
ZenScript CopySieveRecipe.create(recipeId as string) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Name: setInput
Sets the input that should be sifted
Return Type: SieveRecipe
ZenScript CopySieveRecipe.setInput(input as IIngredient) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter input | Type IIngredient | Description sifted block |
Name: setWaterlogged
(Optional) The drop will only happen when the sieve is waterlogged.
Returns: needs a waterlogged sieve now
Return Type: SieveRecipe
ZenScript Copy// SieveRecipe.setWaterlogged() as SieveRecipe
mySieveRecipe.setWaterlogged();