MobInfo
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 MobInfo with default values.
See other methods for adding more customization.
Same as constructor.
Returns: new MobInfo
Return Type: MobInfo
Constructors
No Description Provided
Methods
Sets the data to be merged with default rather than overwriting the default. Does NOT need to be called after setData.
Return Type: MobInfo
Sets the quantity of the mob to be spawned.
Return Type: MobInfo
Parameter | Type | Description |
---|---|---|
Parameter count | Type int | Description quantity |
Sets the mob to be spawned.
Return Type: MobInfo
Parameter | Type | Description |
---|---|---|
Parameter mob | Type MCEntityType | Description resource location |
Sets the offset from the altar where the mobs will be spawned.
Return Type: MobInfo
Parameter | Type | Description |
---|---|---|
Parameter x | Type float | Description x |
Parameter y | Type float | Description y |
Parameter z | Type float | Description z |
Sets the random spread for spawning the mob. Values shouldn’t be negative.
Return Type: MobInfo
Parameter | Type | Description |
---|---|---|
Parameter x | Type float | Description x spread |
Parameter y | Type float | Description y spread |
Parameter z | Type float | Description z spread |