Translations:Implementation and Events/153/en

From DragonMineZ Wiki
Revision as of 05:26, 13 October 2026 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DMZ's channel is NetworkHandler.INSTANCE (a Forge SimpleChannel at dragonminez:network). Don't register your own packets on it: DMZ assigns packet ids by registration order, so anything you add would shift or collide with DMZ's ids. Register your own SimpleChannel in your add-on instead, and use DMZ's as a reference for the pattern (messageBuilder, encoder, decoder and handler, with an explicit direction).