Class ItemModifierBuilder

    • Field Detail

      • INSTANCE

        public static final ItemModifierBuilder INSTANCE
        The instance of the item modifier builder
    • Method Detail

      • register

        public void register​(Supplier<ItemModifier> creator,
                             String... type)
        Register a new modifier creator
        Parameters:
        creator - the creator
        type - the type
      • build

        public List<ItemModifier> build​(Map<String,​Object> map)
        Build all modifiers from a case-insensitive map
        Parameters:
        map - the map
        Returns:
        the modifiers