Adds callback function for the specified callback name. Most of native events can be prevented using Game.prevent call.
callback name, should be one of the pre-defined or a custom name if invoked via Callback.invokeCallback
function to be called when an event occurs
Optional
priority: numberthe more this value is, the earlier your callback handler will be called when an event occurs
Optional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberOptional
priority: numberInvokes callback with any name and up to 10 additional parameters. You should not generally call pre-defined callbacks until you really need to do so. If you want to trigger some event in your mod, use your own callback names.
callback name
Optional
o1: anyOptional
o2: anyOptional
o3: anyOptional
o4: anyOptional
o5: anyOptional
o6: anyOptional
o7: anyOptional
o8: anyOptional
o9: anyOptional
o10: anyCopyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Module used to handle callbacks. Investigate details about the callback mechanism and the list of pre-defined callbacks.