Events
The Library provides multiple events.
PLAYER_CHANGED_CHUNK: Triggered when a player changes chunk. Provides theServerPlayerand the newChunkPos.PLAYER_ENTERED_BIOME: Triggered when a player enters a new biome. Provides theServerPlayerand the new biome'sResourceLocation.PLAYER_ENTERED_STRUCTURE: Triggered when a player enters a new structure. Provides theServerPlayerand the new structure'sResourceLocation.PLAYER_INVENTORY_CHANGED: Triggered when a player's inventory changes. Provides theServerPlayerand aMap<ResourceLocation, Integer>representing the difference in the player's inventory.PRE_FRAME_RENDER: Triggered before each frame is rendered. Provides aDeltaTrackerthat can be used to get the delta time between frames.