public class ItemStackBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.bukkit.inventory.meta.ItemMeta |
itemMeta |
protected org.bukkit.inventory.ItemStack |
itemStack |
| Constructor and Description |
|---|
ItemStackBuilder(int material)
Deprecated.
will only work in versions lower than 1.13
|
ItemStackBuilder(int material,
int amount)
Deprecated.
will only work in versions lower than 1.13
|
ItemStackBuilder(int material,
int amount,
int sub)
Deprecated.
will only work in versions lower than 1.13
|
ItemStackBuilder(org.bukkit.Material material) |
ItemStackBuilder(org.bukkit.Material material,
int amount) |
ItemStackBuilder(org.bukkit.Material material,
int amount,
int sub) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
build() |
static ItemStackBuilder |
builder(int material)
Deprecated.
will only work in versions lower than 1.13
|
static ItemStackBuilder |
builder(int material,
int amount)
Deprecated.
will only work in versions lower than 1.13
|
static ItemStackBuilder |
builder(int material,
int amount,
int sub)
Deprecated.
will only work in versions lower than 1.13
|
static ItemStackBuilder |
builder(org.bukkit.Material material) |
static ItemStackBuilder |
builder(org.bukkit.Material material,
int amount) |
static ItemStackBuilder |
builder(org.bukkit.Material material,
int amount,
int sub) |
ItemStackBuilder |
color(org.bukkit.Color color) |
ItemStackBuilder |
displayName(String name) |
ItemStackBuilder |
enchantment(org.bukkit.enchantments.Enchantment enchantment,
int value) |
static org.bukkit.Material |
getMaterialIgnoreVersion(String name,
int id)
Gets a Material whether by name or by id if not used in MC 1.13+
|
ItemStackBuilder |
lore(List<String> lore) |
ItemStackBuilder |
lore(String... lore) |
ItemStackBuilder |
owner(String name) |
protected org.bukkit.inventory.meta.ItemMeta itemMeta
protected org.bukkit.inventory.ItemStack itemStack
public ItemStackBuilder(org.bukkit.Material material)
@Deprecated public ItemStackBuilder(int material)
public ItemStackBuilder(org.bukkit.Material material,
int amount)
@Deprecated public ItemStackBuilder(int material, int amount)
public ItemStackBuilder(org.bukkit.Material material,
int amount,
int sub)
@Deprecated public ItemStackBuilder(int material, int amount, int sub)
public static org.bukkit.Material getMaterialIgnoreVersion(String name, int id)
name - the materialName of the wanted material or null when the id should be usedid - the materialId of the wanted material or any other number when the name should be usedpublic static ItemStackBuilder builder(org.bukkit.Material material)
public static ItemStackBuilder builder(org.bukkit.Material material, int amount)
public static ItemStackBuilder builder(org.bukkit.Material material, int amount, int sub)
@Deprecated public static ItemStackBuilder builder(int material)
@Deprecated public static ItemStackBuilder builder(int material, int amount)
@Deprecated public static ItemStackBuilder builder(int material, int amount, int sub)
public ItemStackBuilder enchantment(org.bukkit.enchantments.Enchantment enchantment, int value)
public ItemStackBuilder color(org.bukkit.Color color)
public ItemStackBuilder owner(String name)
public ItemStackBuilder displayName(String name)
public ItemStackBuilder lore(String... lore)
public ItemStackBuilder lore(List<String> lore)
public org.bukkit.inventory.ItemStack build()
Copyright © 2020. All rights reserved.