Skip to content

Adding documentation for undocumented events - #69

Open
undeadf0x wants to merge 3 commits into
kube-mods:mainfrom
undeadf0x:patch-1
Open

Adding documentation for undocumented events#69
undeadf0x wants to merge 3 commits into
kube-mods:mainfrom
undeadf0x:patch-1

Conversation

@undeadf0x

Copy link
Copy Markdown

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
Copy Markdown
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

@KonSola5 KonSola5 added the new article New article for the wiki label Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new article New article for the wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants