-
-
Notifications
You must be signed in to change notification settings - Fork 3
Callback: render
Misat11 edited this page May 11, 2020
·
4 revisions
This callback is used for handle item generation from groovy file. Can be used with single item or with all items. These callbacks are called while GenerateItemEvent is called.
inventory {
render {
player.sendMessage 'This message you will see when any item is generated!'
}
item ('STONE')
item ('GRAVEL') {
render {
player.sendMessage 'This message you will see just when this specific gravel is rendered'
}
/* Items inside category won't be affected with parent's callbacks */
item('DIRT')
}
}
All methods available inside render can be found here
Can't find what are you looking for on this wiki? Maybe our automatically generated javadoc could help you https://docs.screamingsandals.org/simpleinventories/simpleinventories-core/
- Welcome on this wiki
- Formats:
- Variables:
- Callbacks: (Groovy only)
-
Examples:
- Making shop (Groovy only)
- Making vault shop (Groovy only)