ItemSetDefinition

public final class ItemSetDefinition extends Record

Turns an enchantment into an item set. Every piece slot must hold an item carrying the enchantment before any of its hooks run, and then they run once per input instead of once per piece. Lore templates use the same $placeholder style as host item lore; see ItemSets.

Constructors

Link copied to clipboard
public void ItemSetDefinition(String name, Map<EnchantmentDefinition.Slot, String> pieces, List<String> lore, String equippedPiece, String missingPiece)

Properties

Link copied to clipboard
public final static String DEFAULT_EQUIPPED_PIECE
Link copied to clipboard
public final static List<String> DEFAULT_LORE
Link copied to clipboard
public final static String DEFAULT_MISSING_PIECE

Functions

Link copied to clipboard
Sets run their hooks with the first piece in slot order as their source item.

Inherited functions

Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()