Class ItemStackBuilder

java.lang.Object
fr.andross.banitem.utils.ItemStackBuilder

public final class ItemStackBuilder extends Object
A simple ItemStack builder utility class.
Version:
3.2
Author:
Andross
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStackBuilder(@Nullable org.bukkit.configuration.ConfigurationSection section)
    Builder to create an ItemStack through configuration properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.inventory.ItemStack
    Build the item.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemStackBuilder

      public ItemStackBuilder(@Nullable @Nullable org.bukkit.configuration.ConfigurationSection section) throws Exception
      Builder to create an ItemStack through configuration properties.
      Parameters:
      section - properties section
      Throws:
      Exception - if an invalid configuration is entered
  • Method Details

    • build

      @NotNull public @NotNull org.bukkit.inventory.ItemStack build()
      Build the item.
      Returns:
      the item built