Package me.hsgamer.hscore.minecraft.item
Class ItemBuilder<T>
java.lang.Object
me.hsgamer.hscore.minecraft.item.ItemBuilder<T>
- Type Parameters:
T
- the type of the item
- Direct Known Subclasses:
BukkitItemBuilder
The item builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItemModifier
(ItemModifier<T> modifier) Add an item modifieraddStringReplacer
(StringReplacer replacer) Add a string replacerbuild()
Build the itemBuild the itemprotected abstract T
Get the default itemGet the map of item modifiersGet the list of string replacersremoveItemModifier
(ItemModifier<T> modifier) Remove an item modifierremoveStringReplacer
(StringReplacer replacer) Remove a string replacer
-
Constructor Details
-
ItemBuilder
public ItemBuilder()
-
-
Method Details
-
getDefaultItem
Get the default item- Returns:
- the default item
-
addItemModifier
Add an item modifier- Parameters:
modifier
- the item modifier- Returns:
this
for builder chain
-
removeItemModifier
Remove an item modifier- Parameters:
modifier
- the item modifier- Returns:
this
for builder chain
-
getItemModifiers
Get the map of item modifiers- Returns:
- the item modifiers
-
getStringReplacers
Get the list of string replacers- Returns:
- the string replacers
-
addStringReplacer
Add a string replacer- Parameters:
replacer
- the string replacer- Returns:
this
for builder chain
-
removeStringReplacer
Remove a string replacer- Parameters:
replacer
- the string replacer- Returns:
this
for builder chain
-
build
Build the item- Parameters:
uuid
- the unique id- Returns:
- the item
-
build
Build the item- Returns:
- the item
-