HauntingManager
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.
import mods.create.HauntingManager;Description
Implements
HauntingManager
implements the following interfaces:
IProcessingRecipeManager<HauntingRecipe>,IRecipeManager<ProcessingRecipe>,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int = 100)
Adds a Haunting recipe.script.zs
// HauntingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int = 100);<recipetype:create:haunting>.addRecipe("2spooky4me", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:dirt>, 200);Parameters:
name: string Type: string
- The name of the recipe outputs: Percentaged<IItemStack>[] Type: Percentaged<IItemStack>[]
- The output ItemStacks of the recipe. duration: int (optional) Type: int
- The duration of the recipe (default 100 ticks)
Default Value: 100
Getter
// HauntingManager.commandString as string<recipetype:create:haunting>.commandString
Return Type:
string
commandString() as string
// HauntingManager.commandString() as string;<recipetype:create:haunting>.commandString();
Return Type:
string
getRecipesByOutput(output as IIngredient) as List<Recipe>
<recipetype:create:haunting>.getRecipesByOutput(myIIngredient);Parameters:
output: IIngredient Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:create:haunting>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as Recipe[ResourceLocation]
registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void)
Registers a recipe using a builder approach.script.zs
// HauntingManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);<recipetype:create:haunting>.registerRecipe(myString, myConsumer);Parameters:
name: string Type: string
- The name of the recipe. recipeBuilder: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void Type: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void
- The recipe builder. remove(output as IIngredient)
<recipetype:create:haunting>.remove(myIIngredient);Parameters:
output: IIngredient Type: IIngredient removeAll()
// HauntingManager.removeAll();<recipetype:create:haunting>.removeAll();removeByInput(input as IItemStack)
<recipetype:create:haunting>.removeByInput(myIItemStack);Parameters:
input: IItemStack Type: IItemStack removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// HauntingManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:haunting>.removeByModid(myString, myPredicate);Parameters:
modid: string Type: string exclude: function(t as string) as bool (optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
removeByName(names as string[])
// HauntingManager.removeByName(names as string[]);<recipetype:create:haunting>.removeByName(myString[]);Parameters:
names: string[] Type: string[] removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// HauntingManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:haunting>.removeByRegex(myString, myPredicate);Parameters:
regex: string Type: string exclude: function(t as string) as bool (optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false