Interface UpgradeItems.Access
- Enclosing class:
UpgradeItems
public static interface UpgradeItems.Access
Reads upgrade behaviors from items.
-
Method Summary
Modifier and TypeMethodDescription@Nullable ResourceVariantitemOf(@NotNull net.kyori.adventure.key.Key upgrade) One item that installsupgrade(an item with that behavior, else the item whose id is the key), or null.@Nullable net.kyori.adventure.key.KeyupgradeOf(@NotNull ResourceVariant item) The upgrade key named byitem's upgrade behavior, or null if it has none.default voidusedIdFallback(@NotNull net.kyori.adventure.key.Key item) itemwas taken for an upgrade only because its id is the upgrade's key (to report once).
-
Method Details
-
upgradeOf
The upgrade key named byitem's upgrade behavior, or null if it has none. -
itemOf
One item that installsupgrade(an item with that behavior, else the item whose id is the key), or null. -
usedIdFallback
default void usedIdFallback(@NotNull @NotNull net.kyori.adventure.key.Key item) itemwas taken for an upgrade only because its id is the upgrade's key (to report once).
-