Class PlayerBusinessItemEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerbusinesses.api.events.BusinessEvent
com.olziedev.playerbusinesses.api.events.menu.PlayerBusinessItemEvent
- All Implemented Interfaces:
Cancellable
Event that is triggered before an item is parsed in a menu.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerBusinessItemEvent
(Player player, ItemStack itemStack) This event is triggered before an item is parsed in a menu. -
Method Summary
Methods inherited from class com.olziedev.playerbusinesses.api.events.BusinessEvent
acceptCallback, callEvent, getPlayerBusinessesAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerBusinessItemEvent
This event is triggered before an item is parsed in a menu.- Parameters:
player
- The player that the item is being parsed for.itemStack
- The item that is being parsed.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayer
- Returns:
- The player that the item is being parsed for.
-
getItemStack
- Returns:
- The item that is being parsed.
-
setItemStack
- Parameters:
itemStack
- The new item that is being parsed.
-