Skip to content

Make events more consistent and add missing register methods#256

Open
DanyGames2014 wants to merge 1 commit intoModificationStation:developfrom
DanyGames2014:register-method-improvements
Open

Make events more consistent and add missing register methods#256
DanyGames2014 wants to merge 1 commit intoModificationStation:developfrom
DanyGames2014:register-method-improvements

Conversation

@DanyGames2014
Copy link
Copy Markdown
Contributor

@DanyGames2014 DanyGames2014 commented Apr 17, 2026

  • Renamed EntityRegister to EntityRegisterEvent
  • Added a KeyBindingRegisterEvent.register method
  • Added a BlockEntityRendererRegisterEvent.register method
  • Added a BlockEntityRegisterEvent.register overload using Identifier
  • Added a EntityRegisterEvent.register overload using Identifier
  • Added a PacketRegisterEvent.register method which accepts PacketType
  • Unified some events to use the Identifier, <register object> order in the register methods in accordance to register methods already using Identifiers.

It might be worth considering removing the String id register methods completely from stuff like entities and block entities

The funciton of the packet type registering tested using a an added test mod packet, everything else is pretty much helper methods
obrazek

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