Class OnTradeEvent

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

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

    • OnTradeEvent

      public OnTradeEvent(org.screamingsandals.lib.player.PlayerWrapper player, List<Price> prices, org.screamingsandals.lib.item.Item stack, PlayerItemInfo item, org.screamingsandals.lib.utils.ClickType clickType)
  • Method Details

    • getFormat

      public InventorySet getFormat()
    • getPrice

      @Deprecated public int getPrice()
      Deprecated.
    • getType

      @Deprecated public String getType()
      Deprecated.
    • hasPlayerInInventory

      public boolean hasPlayerInInventory()
    • hasPlayerInInventory

      public boolean hasPlayerInInventory(org.screamingsandals.lib.item.Item item)
    • sellStack

      public List<org.screamingsandals.lib.item.Item> sellStack()
    • sellStack

      public List<org.screamingsandals.lib.item.Item> sellStack(org.screamingsandals.lib.item.Item item)
    • buyStack

      public List<org.screamingsandals.lib.item.Item> buyStack()
    • buyStack

      public List<org.screamingsandals.lib.item.Item> buyStack(org.screamingsandals.lib.item.Item item)
    • getProperties

      public List<Property> getProperties()
    • hasProperties

      public boolean hasProperties()
    • getPlayer

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

      public List<Price> getPrices()
    • getStack

      public org.screamingsandals.lib.item.Item getStack()
    • getItem

      public PlayerItemInfo getItem()
    • getClickType

      public org.screamingsandals.lib.utils.ClickType getClickType()
    • 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