Class PreClickEvent

java.lang.Object
org.screamingsandals.simpleinventories.events.PreClickEvent
All Implemented Interfaces:
org.screamingsandals.lib.event.Cancellable, org.screamingsandals.lib.event.SCancellableEvent, org.screamingsandals.lib.event.SEvent

public class PreClickEvent extends Object implements org.screamingsandals.lib.event.SCancellableEvent
  • Constructor Details

    • PreClickEvent

      public PreClickEvent(org.screamingsandals.lib.player.PlayerWrapper player, PlayerItemInfo item, org.screamingsandals.lib.utils.ClickType clickType, SubInventory subInventory)
  • Method Details

    • hasItem

      public boolean hasItem()
    • getFormat

      public InventorySet getFormat()
    • getParent

      public IdentifiableEntry getParent()
    • getPlayer

      public org.screamingsandals.lib.player.PlayerWrapper getPlayer()
    • getItem

      public PlayerItemInfo getItem()
    • getClickType

      public org.screamingsandals.lib.utils.ClickType getClickType()
    • getSubInventory

      public SubInventory getSubInventory()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.screamingsandals.lib.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.screamingsandals.lib.event.Cancellable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object