SieveRecipe
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.
import mods.exnihilosequentia.SieveRecipe;
Methods
Sets the item that should drop when sifting
Return Type: SieveRecipe
SieveRecipe.addDrop(drop as IItemStack) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter drop | Type IItemStack | Description dropped item |
Sets the mesh type and the chance, how often the item should drop.
Return Type: SieveRecipe
SieveRecipe.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) |
Create a recipe name for the new recipe
Return Type: SieveRecipe
SieveRecipe.create(recipeId as string) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Sets the input that should be sifted
Return Type: SieveRecipe
SieveRecipe.setInput(input as IIngredient) as SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter input | Type IIngredient | Description sifted block |
(Optional) The drop will only happen when the sieve is waterlogged.
Returns: needs a waterlogged sieve now
Return Type: SieveRecipe
// SieveRecipe.setWaterlogged() as SieveRecipe
mySieveRecipe.setWaterlogged();