Package me.hsgamer.bettergui.builder
Class ItemModifierBuilder
- java.lang.Object
-
- me.hsgamer.hscore.builder.MassBuilder<I,O>
-
- me.hsgamer.hscore.builder.FunctionalMassBuilder<Map.Entry<String,Object>,ItemModifier<org.bukkit.inventory.ItemStack>>
-
- me.hsgamer.bettergui.builder.ItemModifierBuilder
-
public class ItemModifierBuilder extends FunctionalMassBuilder<Map.Entry<String,Object>,ItemModifier<org.bukkit.inventory.ItemStack>>
The item modifier builder
-
-
Field Summary
Fields Modifier and Type Field Description static ItemModifierBuilder
INSTANCE
The instance of the item modifier builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ItemModifier<org.bukkit.inventory.ItemStack>>
build(Map<String,Object> map)
Build all modifiers from a case-insensitive mapprotected String
getType(Map.Entry<String,Object> input)
void
register(Supplier<ItemModifier<org.bukkit.inventory.ItemStack>> creator, String... type)
Register a new modifier creator-
Methods inherited from class me.hsgamer.hscore.builder.FunctionalMassBuilder
build, register
-
Methods inherited from class me.hsgamer.hscore.builder.MassBuilder
build, buildAll, clear, getElements, register, register, remove
-
-
-
-
Field Detail
-
INSTANCE
public static final ItemModifierBuilder INSTANCE
The instance of the item modifier builder
-
-
Method Detail
-
getType
protected String getType(Map.Entry<String,Object> input)
- Specified by:
getType
in classFunctionalMassBuilder<Map.Entry<String,Object>,ItemModifier<org.bukkit.inventory.ItemStack>>
-
register
public void register(Supplier<ItemModifier<org.bukkit.inventory.ItemStack>> creator, String... type)
Register a new modifier creator- Parameters:
creator
- the creatortype
- the type
-
build
public List<ItemModifier<org.bukkit.inventory.ItemStack>> build(Map<String,Object> map)
Build all modifiers from a case-insensitive map- Parameters:
map
- the map- Returns:
- the modifiers
-
-