Class ClickPlan

java.lang.Object
org.geysermc.geyser.inventory.click.ClickPlan

public final class ClickPlan extends Object
  • Constructor Details

  • Method Details

    • add

      public void add(Click click, int slot)
    • add

      public void add(Click click, int slot, boolean force)
    • execute

      public void execute(boolean refresh)
    • executeForCreativeMode

      public void executeForCreativeMode()
    • getInventory

      public Inventory getInventory()
    • canStack

      public boolean canStack(int slot, GeyserItemStack item)
      Test if the item stacks with another item in the specified slot. This will check the simulated inventory without copying.
    • isEmpty

      public boolean isEmpty(int slot)
      Test if the specified slot is empty. This will check the simulated inventory without copying.
    • getItem

      public GeyserItemStack getItem(int slot)
    • setDesiredBundleSlot

      public void setDesiredBundleSlot(int desiredBundleSlot)
    • getCursor

      public GeyserItemStack getCursor()
    • getAffectedSlots

      @Contract("-> new") public it.unimi.dsi.fastutil.ints.IntSet getAffectedSlots()
      Returns:
      a new set of all affected slots.