Developers API
Loading dependency
You can add KGenerators as dependency directly via jar file or use Mave/Gradle
Maven
Gradle
VERSION should look like 7.0
/ 7.1 / 7.2
and so on
Getting started with KGeneratorsAPI
All API methods are accessible from KGeneratorsAPI
class
The most important Interface is IGeneratorLocation
, which manages Generator at specific location.
Related to that is method KGeneratorsAPI#getGeneratorLocation(Location)
A few examples below
Events
PreBlockGenerationEvent
- cancellable event called when generator regenegenerating function is fired, returnsIGeneratorLocation
``PostBlockGenerationEvent
- called after generator regeneration, for monitoring reasons, returnsIGeneratorLocation
``ReloadEvent
- called, when KGenerators is beeing reloaded.
Last updated