Class ItemEntryBuilder
- java.lang.Object
-
- org.rspeer.game.config.item.entry.builder.ItemEntryBuilder
-
- Direct Known Subclasses:
FuzzyItemEntryBuilder
public class ItemEntryBuilder extends Object
- See Also:
ItemEntry
-
-
Constructor Summary
Constructors Constructor Description ItemEntryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemEntry
build()
ItemEntryBuilder
equipmentSlot(Equipment.Slot equipmentSlot)
ItemEntryBuilder
key(String key)
ItemEntryBuilder
noted(boolean noted)
ItemEntryBuilder
optional(boolean optional)
ItemEntryBuilder
quantity(int withdrawQuantity)
ItemEntryBuilder
quantity(int minimumQuantity, int withdrawQuantity)
ItemEntryBuilder
restockMeta(RestockMeta restockMeta)
ItemEntryBuilder
stackable(boolean stackable)
-
-
-
Method Detail
-
key
public ItemEntryBuilder key(String key)
- Returns:
- Sets the key of the
ItemEntry
. This should typically be the name. Fuzzy items should exclude potion charges and item doses and simply use the base name
-
quantity
public ItemEntryBuilder quantity(int minimumQuantity, int withdrawQuantity)
- Returns:
- Sets the minimum quantity of the
ItemEntry
-
quantity
public ItemEntryBuilder quantity(int withdrawQuantity)
-
stackable
public ItemEntryBuilder stackable(boolean stackable)
-
noted
public ItemEntryBuilder noted(boolean noted)
-
restockMeta
public ItemEntryBuilder restockMeta(RestockMeta restockMeta)
-
optional
public ItemEntryBuilder optional(boolean optional)
-
equipmentSlot
public ItemEntryBuilder equipmentSlot(Equipment.Slot equipmentSlot)
-
build
public ItemEntry build()
-
-