SummoningInfo
This class was added by a mod with mod-id zensummoning
. So you need to have this mod installed if you want to use this feature.
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.
Static Methods
Creates a new SummoningInfo with default values.
See other methods for adding more customization.
Same as constructor.
Returns: new info
Return Type: SummoningInfo
Constructors
No Description Provided
Methods
Adds an additional condition for the summoning to work. This can be used to require a gamestage (or deny one I guess)
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter condition | Type Predicate<SummoningAttempt> | Description condition |
Parameter failureMessage | Type string | Description chat message on failure |
Parameter jeiDescription | Type string | Description No Description Provided |
Adds a new mob to the summoning. Returns itself for builder pattern.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter info | Type MobInfo | Description mob to add |
Sets the catalyst that will be used to start the ritual.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter ingredient | Type IIngredientWithAmount | Description catalyst |
Determines whether or not the catalyst will be consumed.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter value | Type boolean | Description consumed |
Custom callback to determine if a summon should be allowed.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter mutator | Type Consumer<SummoningAttempt> | Description callback |
Sets the ingredients to be required to start the summon.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter reagents | Type IIngredientWithAmount[] | Description ingredient list |
Sets the sound played when a summon completes.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter sound | Type string | Description sound resource location |
Sets the weight that this summoning has. Summonings with the same catalyst and reagents are determined randomly using this.
Return Type: SummoningInfo
Parameter | Type | Description |
---|---|---|
Parameter weight | Type double | Description |