Constructor - WarzouMc/ItemBuilder GitHub Wiki
ItemBuilder construcors :
-
Default ItemBuilder parameters
- material -> AIR
- amount -> 1
- data -> 0
-
ItemBuilder(Material material)
ItemBuilder call with material initialization and default amount / data
- material -> material
- amount -> 1
- data -> 0
-
ItemBuilder(Material material, int amount)
ItemBuilder call with material and amount initialization and default data
- material -> material
- amount -> amount
- data -> 0
-
ItemBuilder(Material material, int amount, int data)
ItemBuilder call with material, amount and data initialization
- material -> material
- amount -> amount
- data -> data
-
ItemBuilder(ItemStack itemStack)
ItemBuilder call with itemstack initialization
- itemStack -> itemStack
-
ItemBuilder(JSONObject jsonObject)
ItemBuilder call with jsonobject (the json object need to have same construction of the toJsonObject method)
- itemStack -> fromString(String string).toItemStack()