Package io.papermc.paper.event.player
Class PlayerMapFilledEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerMapFilledEvent
Called when a player creates a filled map by right-clicking an empty map.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerMapFilledEvent
(Player player, ItemStack originalItem, ItemStack createdMap) -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of the filled map which was created.static HandlerList
Returns a copy of the empty map before it was consumed.void
setCreatedMap
(ItemStack createdMap) Sets the filled map that will be created.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerMapFilledEvent
-
-
Method Details
-
getOriginalItem
Returns a copy of the empty map before it was consumed.- Returns:
- cloned original item
-
getCreatedMap
Returns a copy of the filled map which was created.- Returns:
- cloned created map item
-
setCreatedMap
Sets the filled map that will be created.- Parameters:
createdMap
- map item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-