Package org.purpurmc.purpur.event.packet
Class NetworkItemSerializeEvent
java.lang.Object
org.bukkit.event.Event
org.purpurmc.purpur.event.packet.NetworkItemSerializeEvent
Called when an item is about to be written to a packet.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
void
setItemStack
(@Nullable ItemStack itemStack) Sets the item that will be serialized.Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
NetworkItemSerializeEvent
-
-
Method Details
-
getItemStack
- Returns:
- The item that is about to be serialized. Not mutable
-
setItemStack
Sets the item that will be serialized.- Parameters:
itemStack
- The item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-