Class SupremeItemStack

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack
com.github.relativobr.supreme.util.SupremeItemStack

public class SupremeItemStack extends io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack
Constructs every Supreme item name-less (2-arg SlimefunItemStack). The display name and lore now live in languages/<lang>/items.yml and are rendered per-viewer by the core ItemTranslationService (see Supreme#onEnable -> registerTranslations); the legacy name/lore constructor arguments are accepted for source compatibility but ignored. This is what lets Supreme's items be translated (and keeps them off the deprecated hardcoded-lore path). Ids still pass through CompatibilySupremeLegacy for the optional SupremeExpansion legacy-id remap.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SupremeItemStack(String id, String texture, boolean suffixLore, String... lor)
     
    SupremeItemStack(String id, String texture, String name, String... lor)
     
    SupremeItemStack(String id, org.bukkit.Material material)
     
    SupremeItemStack(String id, org.bukkit.Material material, boolean suffixLore, String... lor)
     
    SupremeItemStack(String id, org.bukkit.Material material, String name, String... lor)
     
  • Method Summary

    Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack

    add, add, addEnchantment, addEnchantments, addItemFlags, addUnsafeEnchantment, addUnsafeEnchantments, asHoverEvent, asHoverEvent, asOne, asQuantity, canRepair, clone, computeTooltipLines, containsEnchantment, damage, displayName, editMeta, editMeta, enchantWithLevels, enchantWithLevels, ensureServerConversions, equals, getAmount, getData, getDisplayName, getDurability, getEnchantmentLevel, getEnchantments, getI18NDisplayName, getItem, getItem, getItemFlags, getItemId, getItemMeta, getItemMetaSnapshot, getLore, getMaxItemUseDuration, getMaxItemUseDuration, getMaxStackSize, getRarity, getSkullTexture, getTranslationKey, getType, hashCode, hasItemFlag, hasItemMeta, isEmpty, isRepairableBy, isSimilar, item, lore, lore, removeEnchantment, removeEnchantments, removeItemFlags, serialize, serializeAsBytes, setAmount, setData, setDurability, setItemMeta, setLore, setType, subtract, subtract, toString, translationKey, withType

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull org.bukkit.Material material, @Nullable String name, String... lor)
    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull org.bukkit.Material material)
    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull org.bukkit.Material material, boolean suffixLore, String... lor)
    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull String texture, @Nullable String name, String... lor)
    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull String texture)
    • SupremeItemStack

      public SupremeItemStack(@Nonnull String id, @Nonnull String texture, boolean suffixLore, String... lor)