Skip to content

Adding documentation for undocumented events#69

Open
undeadf0x wants to merge 3 commits intoKubeJS-Mods:mainfrom
undeadf0x:patch-1
Open

Adding documentation for undocumented events#69
undeadf0x wants to merge 3 commits intoKubeJS-Mods:mainfrom
undeadf0x:patch-1

Conversation

@undeadf0x
Copy link

No description provided.

@undeadf0x undeadf0x changed the title New page for BlockEvents.broken event Adding documentation for undocumented events Aug 10, 2025
@KonSola5
Copy link
Contributor

OK, though the documentation is quite lackluster.

  • getEntity and getBlock are not the only methods available on this event. There are a few more methods, like getServer, getRegistries, getLevel and getEntity (the latter of this is basically equivalent to getPlayer most of the time)
  • Per https://kubejs.com/wiki/contributing, you should use beans in examples. So instead of:
event.getEntity().getName().getString()

use:

event.entity.displayName.string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants