Skip to main content

ItemBuilder

xyz.refineryteam.refinerycore.api.item.ItemBuilder is a fluent wrapper around ItemStack/ItemMeta, so item construction reads top-to-bottom instead of a sequence of meta.set... calls with manual null-checking.
ExampleItem.java

Creating a builder

Display & lore

Enchantments & flags

Other properties

Player heads

Escape hatches

ItemSerializer

xyz.refineryteam.refinerycore.api.item.ItemSerializer serializes ItemStacks to compact Base64 strings so they can be stored in a database column, config, or plugin message. It uses Paper’s native DataComponent-based serialization — full fidelity including components, enchantments, and custom model data on 1.20.5+.
ItemStorage.java
For capturing a player’s entire inventory (storage + armor + off hand) as one string, see InventorySnapshot.

EasyMiniMessage

xyz.refineryteam.refinerycore.api.minimessage.EasyMiniMessage is a thin static wrapper around Adventure’s MiniMessage, used throughout RefineryCore (commands, GUIs, scoreboards) so every plugin formats text consistently:
PlayersListener.java
Since every RefineryCore subsystem (commands, GUIs, scoreboards, prompts) accepts plain MiniMessage strings and formats them through this helper internally, you rarely need to call EasyMiniMessage.format yourself — pass MiniMessage strings directly to those APIs. Reach for it directly when sending a message outside of those APIs (e.g. player.sendMessage(EasyMiniMessage.format(...))).