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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.screamingsandals.lib.event.SEvent
org.screamingsandals.lib.event.SEvent.Result -
Constructor Summary
ConstructorsConstructorDescriptionOnTradeEvent(org.screamingsandals.lib.player.PlayerWrapper player, List<Price> prices, org.screamingsandals.lib.item.Item stack, PlayerItemInfo item, org.screamingsandals.lib.utils.ClickType clickType) -
Method Summary
Modifier and TypeMethodDescriptionList<org.screamingsandals.lib.item.Item>buyStack()List<org.screamingsandals.lib.item.Item>buyStack(org.screamingsandals.lib.item.Item item) protected booleanbooleanorg.screamingsandals.lib.utils.ClickTypegetItem()org.screamingsandals.lib.player.PlayerWrapperintgetPrice()Deprecated.org.screamingsandals.lib.item.ItemgetStack()getType()Deprecated.inthashCode()booleanbooleanhasPlayerInInventory(org.screamingsandals.lib.item.Item item) booleanbooleanList<org.screamingsandals.lib.item.Item>List<org.screamingsandals.lib.item.Item>sellStack(org.screamingsandals.lib.item.Item item) voidsetCancelled(boolean cancelled) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.screamingsandals.lib.event.SEvent
isAsync
-
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
-
getPrice
Deprecated. -
getType
Deprecated. -
hasPlayerInInventory
public boolean hasPlayerInInventory() -
hasPlayerInInventory
public boolean hasPlayerInInventory(org.screamingsandals.lib.item.Item item) -
sellStack
-
sellStack
-
buyStack
-
buyStack
-
getProperties
-
hasProperties
public boolean hasProperties() -
getPlayer
public org.screamingsandals.lib.player.PlayerWrapper getPlayer() -
getPrices
-
getStack
public org.screamingsandals.lib.item.Item getStack() -
getItem
-
getClickType
public org.screamingsandals.lib.utils.ClickType getClickType() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.screamingsandals.lib.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.screamingsandals.lib.event.Cancellable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-