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
ConstructorDescriptionOnTradeEvent
(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 boolean
boolean
org.screamingsandals.lib.utils.ClickType
getItem()
org.screamingsandals.lib.player.PlayerWrapper
int
getPrice()
Deprecated.org.screamingsandals.lib.item.Item
getStack()
getType()
Deprecated.int
hashCode()
boolean
boolean
hasPlayerInInventory
(org.screamingsandals.lib.item.Item item) boolean
boolean
List<org.screamingsandals.lib.item.Item>
List<org.screamingsandals.lib.item.Item>
sellStack
(org.screamingsandals.lib.item.Item item) void
setCancelled
(boolean cancelled) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
isCancelled
in interfaceorg.screamingsandals.lib.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.screamingsandals.lib.event.Cancellable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-