Interface ComponentFactory<Factory extends ComponentFactory<Factory>>

Type Parameters:
Factory - 組件工廠
All Known Subinterfaces:
AnimatedButtonFactory, BukkitItemFactory, ButtonFactory, CheckboxFactory, DateSelectorFactory, NumInputFactory, PasswordInputFactory, RGBSelectorFactory, SelectionFactory, TextInputFactory, TimeSelectorFactory
All Known Implementing Classes:
AbstractComponentFactory

public interface ComponentFactory<Factory extends ComponentFactory<Factory>>
基礎組件工廠,所有組件工廠必須繼承此類
  • Method Details

    • icon

      Factory icon(Material material)
      Parameters:
      material - 圖示
      Returns:
      this
    • number

      Factory number(int amount)
      Parameters:
      amount - 數量
      Returns:
      this
    • mirror

      以該物品為組件外觀原型。注意此舉將會覆蓋之前的所有設定 (包括綁定數值和外觀等)
      Parameters:
      item - bukkit 物品
      Returns:
      this
    • bind

      Factory bind(String key, Object value)
      綁定組件屬性
      Parameters:
      key - 鍵
      value - 數值
      Returns:
      this
    • create

      創建組件
      Returns:
      this