Enums
The core system provides a set of enums that define standard values used across the project.
Always use these enums instead of duplicating values manually.
General Notes
- Most enums provide static lookup methods for fast access.
- Many use cached maps internally - prefer those methods over manual iteration.
- These enums are part of the core API - do not reimplement similar logic.
ChatDisplayType
Defines where a message is displayed on the screen.
CHAT→ normal chat messageTITLE→ center screen titleACTION_BAR→ above the hotbar
ItemColor
Maps PixelColor to Bukkit Material (wool).
Used for building color selection inventories.
Useful methods:
getByMaterial(Material)→ get color from itemgetByColor(Color)→ get item from color
ItemGlassPaneColor
Same concept as ItemColor, but for glass panes.
Used for UI / inventory layouts.
PixelChatSmiley
Handles chat smileys and their replacements.
Examples:
:)→◕‿◕<3→❤
Useful methods:
getSmiley(String)→ resolve smileysetSmileys(String)→ replace all formats in a message
Also contains all emoji characters for filtering (EMOJI_CHARS).
PixelColor
Central color system used across the entire project.
Supports:
- Minecraft color codes
- Hex colors
- Adventure format
- Rank-based color permissions
Key features:
getByChar(char)→ resolve from color codegetByHex(String)→ resolve from hexhasNeededRank(Rank)→ permission check
PixelServerLink
Represents predefined server-related links (website, discord, shop, etc.).
Provides:
- colored display (
getColor()) - raw url (
getRawUrl()) - full url (
getUrl())
Helper methods:
toClickable()→ formatted clickable messagetoString()→ formatted display string
PixelVersion
Represents supported Minecraft versions.
Provides:
- version id (protocol)
- version name (e.g. "1.20.4")
Useful methods:
getVersion(String)→ resolve by namegetVersion(int)→ resolve by id
Constants:
CURRENT_VERSIONHIGHEST_VERSION
BreedItem
Defines which items can be used to breed specific entities.
Examples:
PIG→ carrot, beetroot, potatoCOW→ wheatWOLF→ various meats
Useful methods:
getByEntity(EntityType)→ get valid materialsisBreedItem(EntityType, Material)→ check if valid