Class BedrockGui

java.lang.Object
com.mclds.plugins.gui.BedrockGui
All Implemented Interfaces:
Gui, org.bukkit.event.Listener

public class BedrockGui extends Object implements Gui, org.bukkit.event.Listener
  • Constructor Details

    • BedrockGui

      public BedrockGui(String title, String template)
  • Method Details

    • setItemsWrapper

      public BedrockGui setItemsWrapper(List<ItemWrapper> items)
    • set

      public BedrockGui set(int slot, ItemWrapper item)
      Specified by:
      set in interface Gui
    • set

      public BedrockGui set(char slot, ItemWrapper item)
      Specified by:
      set in interface Gui
    • set

      public BedrockGui set(char slot, int slot_index, ItemWrapper item)
      Specified by:
      set in interface Gui
    • get

      public ItemWrapper get(int index)
      Specified by:
      get in interface Gui
    • get

      public ItemWrapper get(char slot, int index)
    • append

      public BedrockGui append(char slot, ItemWrapper... item)
      Specified by:
      append in interface Gui
    • show

      public void show(org.bukkit.entity.Player viewer)
      Specified by:
      show in interface Gui
    • onDrag

      public boolean onDrag(org.bukkit.entity.Player viewer, org.bukkit.event.inventory.InventoryDragEvent event)
      Specified by:
      onDrag in interface Gui
    • onMoveToGUI

      public boolean onMoveToGUI(org.bukkit.entity.Player viewer, int slot)
      Description copied from interface: Gui
      当想要移动物品进GUI中
      Specified by:
      onMoveToGUI in interface Gui
    • onMoveToPlayer

      public boolean onMoveToPlayer(org.bukkit.entity.Player viewer, int slot)
      Description copied from interface: Gui
      当想要移动物品到玩家背包中
      Specified by:
      onMoveToPlayer in interface Gui
    • onClose

      public void onClose(org.bukkit.entity.Player viewer)
      Specified by:
      onClose in interface Gui
    • onClick

      public boolean onClick(org.bukkit.entity.Player viewer, int slot, org.bukkit.event.inventory.ClickType clickType)
      Description copied from interface: Gui
      重载此方法后必须调用 super.onClick ,否则无法触发各种点击事件
      Specified by:
      onClick in interface Gui
    • update

      public void update(int slot)
      Specified by:
      update in interface Gui
    • update

      public void update(char slot)
      Specified by:
      update in interface Gui
    • playSound

      public void playSound(org.bukkit.entity.Player viewer)