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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.screamingsandals.lib.event.SEvent
org.screamingsandals.lib.event.SEvent.Result
-
Constructor Summary
ConstructorDescriptionPreClickEvent
(org.screamingsandals.lib.player.PlayerWrapper player, PlayerItemInfo item, org.screamingsandals.lib.utils.ClickType clickType, SubInventory subInventory) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.screamingsandals.lib.utils.ClickType
getItem()
org.screamingsandals.lib.player.PlayerWrapper
int
hashCode()
boolean
hasItem()
boolean
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
-
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
-
getParent
-
getPlayer
public org.screamingsandals.lib.player.PlayerWrapper getPlayer() -
getItem
-
getClickType
public org.screamingsandals.lib.utils.ClickType getClickType() -
getSubInventory
-
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
-