Class IngredientBuilder<I extends IngredientImpl,​B extends IngredientBuilder<I,​B>>

java.lang.Object
ru.cwcode.tkach.refreshmenu.inventory.ingredient.AbstractIngredientBuilder<I,​B>
ru.cwcode.tkach.refreshmenu.inventory.ingredient.IngredientBuilder<I,​B>
Direct Known Subclasses:
ActionIngredientBuilder, ExtraIngredientBuilder

public class IngredientBuilder<I extends IngredientImpl,​B extends IngredientBuilder<I,​B>> extends AbstractIngredientBuilder<I,​B>
  • Field Details

    • name

      protected String name
    • description

      protected List<String> description
    • amount

      protected int amount
    • type

      protected org.bukkit.Material type
    • customModelData

      protected int customModelData
  • Constructor Details

    • IngredientBuilder

      public IngredientBuilder()
  • Method Details

    • fromItemData

      public B fromItemData(ru.cwcode.tkach.locale.paper.data.ItemData itemData)
    • name

      public B name(String name)
    • name

      public B name(net.kyori.adventure.text.Component name)
    • description

      public B description(List<String> description)
    • description

      public B description(String... description)
    • description

      public B description(String description)
    • descriptionFromComponent

      public B descriptionFromComponent(List<net.kyori.adventure.text.Component> description)
    • descriptionFromComponent

      public B descriptionFromComponent(net.kyori.adventure.text.Component... description)
    • descriptionFromComponent

      public B descriptionFromComponent(net.kyori.adventure.text.Component description)
    • amount

      public B amount(int amount)
    • type

      public B type(org.bukkit.Material type)
    • customModelData

      public B customModelData(int data)
    • build

      public I build()
      Specified by:
      build in class AbstractIngredientBuilder<I extends IngredientImpl,​B extends IngredientBuilder<I,​B>>