Code Patterns
Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.
All
225
Command
60
Damage
2
Ecs
27
Entity
5
Gui
75
Interaction
2
Inventory
4
Moderation
3
Permission
2
Player
9
Plugin
4
Storage
2
Teleport
3
Ui
22
Util
5
Util Patterns
5API Gotchas
Common API mistakes and their corrections. Read this before writing Hytale plugins!
Data Manager Singleton
Thread-safe singleton pattern for managing player data with ConcurrentHashMap.
Duration Parser
Parse human-readable duration strings like "1d 2h 30m 15s" into milliseconds
Recipe Data Asset
Define crafting recipes as JSON data assets. Place in src/main/resources/Server/Item/Recipes/
Reflection Field Access
Access private fields via reflection