Package me.hsgamer.hscore.bukkit.item
Class BukkitItemBuilder
java.lang.Object
me.hsgamer.hscore.minecraft.item.ItemBuilder<org.bukkit.inventory.ItemStack>
me.hsgamer.hscore.bukkit.item.BukkitItemBuilder
The item builder
-
Constructor Summary
ConstructorDescriptionCreate a new builderBukkitItemBuilder
(org.bukkit.inventory.ItemStack defaultItemStack) Create a new builder with the default itemBukkitItemBuilder
(org.bukkit.Material material) Create a new builder with the default item -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull org.bukkit.inventory.ItemStack
Get the default itemMethods inherited from class me.hsgamer.hscore.minecraft.item.ItemBuilder
addItemModifier, addStringReplacer, build, build, getItemModifiers, getStringReplacers, removeItemModifier, removeStringReplacer
-
Constructor Details
-
BukkitItemBuilder
public BukkitItemBuilder()Create a new builder -
BukkitItemBuilder
public BukkitItemBuilder(org.bukkit.inventory.ItemStack defaultItemStack) Create a new builder with the default item- Parameters:
defaultItemStack
- the default item
-
BukkitItemBuilder
public BukkitItemBuilder(org.bukkit.Material material) Create a new builder with the default item- Parameters:
material
- theMaterial
of the default item
-
-
Method Details
-
getDefaultItem
@NotNull protected @NotNull org.bukkit.inventory.ItemStack getDefaultItem()Description copied from class:ItemBuilder
Get the default item- Specified by:
getDefaultItem
in classItemBuilder<org.bukkit.inventory.ItemStack>
- Returns:
- the default item
-