Class ItemEditor

java.lang.Object
net.okocraft.box.feature.gui.api.util.ItemEditor

public class ItemEditor extends Object
  • Constructor Details

    • ItemEditor

      public ItemEditor()
  • Method Details

    • create

      @Contract("-> new") @NotNull public static @NotNull ItemEditor create()
    • displayName

      @NotNull public @NotNull ItemEditor displayName(@NotNull @NotNull ComponentLike displayName)
    • clearLore

      @NotNull public @NotNull ItemEditor clearLore()
    • loreEmptyLine

      @NotNull public @NotNull ItemEditor loreEmptyLine()
    • loreEmptyLineIf

      @NotNull public @NotNull ItemEditor loreEmptyLineIf(boolean state)
    • loreLine

      @NotNull public @NotNull ItemEditor loreLine(@NotNull @NotNull ComponentLike line)
    • loreLineIf

      @NotNull public @NotNull ItemEditor loreLineIf(boolean state, @NotNull @NotNull Supplier<? extends ComponentLike> line)
    • loreLines

      @NotNull public @NotNull ItemEditor loreLines(@NotNull @NotNull ComponentLike lines)
    • copyLoreFrom

      @NotNull public @NotNull ItemEditor copyLoreFrom(@NotNull @NotNull ItemStack source)
    • editPersistentDataContainer

      @NotNull public @NotNull ItemEditor editPersistentDataContainer(@NotNull @NotNull Consumer<PersistentDataContainer> edit)
    • applyTo

      @Contract("_, _ -> param2") @NotNull public @NotNull ItemStack applyTo(@NotNull @NotNull Player player, @NotNull @NotNull ItemStack item)
    • createItem

      @NotNull public @NotNull ItemStack createItem(@NotNull @NotNull Player player, @NotNull @NotNull Material material)
    • createItem

      @NotNull public @NotNull ItemStack createItem(@NotNull @NotNull Player player, @NotNull @NotNull Material material, int amount)