InfuserManager
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.
Implemented Interfaces
InfuserManager implements the following interfaces. That means all methods defined in these interfaces are also available in InfuserManager
Methods
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Parameter mapData | Type MapData | Description No Description Provided |
Adds a new recipe to the Infuser Multiblock Setup. Some parameters have some constraints:
The input ingredients two dimensional array must have a structure like this:
So that it matches the Infuser Screen. Air can and should be used to pad out the recipe but the Array structure must match that or it will error.
The catalysts two dimensional array must have a structure like this:
The catalysts array is transposed like this:
You can find out the list of usable catalyst blocks by using the /ct dump solarforge_catalysts
command.
Any other blocks that are present in the array but aren’t considered a catalyst will be ignored.
You can find out possible fragment ids by using the /ct dump solarforge_fragments
command.
These will be required by the player in order to be able to craft the recipe.
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description The name of the recipe to add |
Parameter output | Type IItemStack | Description The IItemStack to be outputted from the recipe. |
Parameter ings | Type IIngredient[][] | Description The input IItemStacks[]. Does not support tags. |
Parameter catalysts | Type Block[][] | Description The required Block catalysts that should be placed in columns in order for the recipe to craft. |
Parameter solarEnergy | Type int | Description Required solar energy for recipe. |
Parameter processingTime | Type int | Description The amount of time it should take the recipe to craft. |
Parameter fragment | Type string | Description The id of the fragment to use. |
Parameter costs | Type RunicEnergyCost | Description The RunicEnergyCost this recipe has. Recipe will automatically assign itself the structure tier it needs. (If Runic energy cost > 0 tier will be Runic Energy, if solar energy > 0 tier will be Solar Energy. Solar Energy tier overrides Runic Energy tier. If both of the costs are 0, the tier will be First.). |
Return Type: stdlib.List<T>
Return Type: T
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Return Type: T[ResourceLocation]
Return Type: stdlib.List<T>
Parameter | Type | Description |
---|---|---|
Parameter output | Type IIngredient | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter output | Type IIngredient | Description No Description Provided |
Return Type: void
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter input | Type IItemStack | Description No Description Provided |
Return Type: void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter modid | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter exclude | Type Predicate<string> | Description No Description Provided | Optional true | DefaultValue (name as string) as bool => false |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Return Type: void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter regex | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter exclude | Type Predicate<string> | Description No Description Provided | Optional true | DefaultValue (name as string) as bool => false |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name allRecipes | Type stdlib.List<T> | Has Getter true | Has Setter false | Description No Description Provided |
Name recipeMap | Type T[ResourceLocation] | Has Getter true | Has Setter false | Description No Description Provided |