Package io.papermc.paper.event.player
Class PlayerItemFrameChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerItemFrameChangeEvent
- All Implemented Interfaces:
- Cancellable
Called when an 
ItemFrame is having an item rotated, added, or removed from it.- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerItemFrameChangeEvent(@NotNull Player player, @NotNull ItemFrame itemFrame, @NotNull ItemStack itemStack, @NotNull PlayerItemFrameChangeEvent.ItemFrameChangeAction action) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the action that was performed on thisItemFrame.static @NotNull HandlerListGets theItemFrameinvolved in this event.Gets theItemStackinvolved in this event.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.voidsetItemStack(@Nullable ItemStack itemStack) Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerItemFrameChangeEvent
 
- 
- 
Method Details- 
getItemFrameGets theItemFrameinvolved in this event.- Returns:
- the ItemFrame
 
- 
getItemStackGets theItemStackinvolved in this event. This is the item being added, rotated, or removed from theItemFrame.If this method returns air, then the resulting item in the ItemFrame will be empty. - Returns:
- the ItemStackbeing added, rotated, or removed
 
- 
setItemStackSets theItemStackthat thisItemFrameholds. If null is provided, the ItemStack will become air and the result in the ItemFrame will be empty.- Parameters:
- itemStack-- ItemFrameitem
 
- 
getActionGets the action that was performed on thisItemFrame.- Returns:
- action performed on the item frame in this event
- See Also:
 
- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-