Constructor - WarzouMc/ItemBuilder GitHub Wiki

ItemBuilder construcors :

  • ItemBuilder()

    Default ItemBuilder parameters

    1. material -> AIR
    2. amount -> 1
    3. data -> 0
  • ItemBuilder(Material material)

    ItemBuilder call with material initialization and default amount / data

    1. material -> material
    2. amount -> 1
    3. data -> 0
  • ItemBuilder(Material material, int amount)

    ItemBuilder call with material and amount initialization and default data

    1. material -> material
    2. amount -> amount
    3. data -> 0
  • ItemBuilder(Material material, int amount, int data)

    ItemBuilder call with material, amount and data initialization

    1. material -> material
    2. amount -> amount
    3. data -> data
  • ItemBuilder(ItemStack itemStack)

    ItemBuilder call with itemstack initialization

    1. itemStack -> itemStack
  • ItemBuilder(JSONObject jsonObject)

    ItemBuilder call with jsonobject (the json object need to have same construction of the toJsonObject method)

    1. itemStack -> fromString(String string).toItemStack()