JavaScript is disabled on your browser.
Skip navigation links
Overview
Class
Use
Tree
Deprecated
Index
Search
Help
io.papermc.paper.event.entity
EntityEquipmentChangedEvent
EquipmentChange
Contents
Description
Method Summary
Method Details
oldItem()
newItem()
Hide sidebar
Show sidebar
Interface EntityEquipmentChangedEvent.EquipmentChange
Enclosing class:
EntityEquipmentChangedEvent
@NonExtendable
public static interface
EntityEquipmentChangedEvent.EquipmentChange
Represents a change in equipment for a single equipment slot.
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
ItemStack
newItem
()
Gets the new item that is replacing the existing item.
ItemStack
oldItem
()
Gets the existing item that is being replaced.
Method Details
oldItem
@Contract
(
pure
=true,
value
="-> new")
ItemStack
oldItem
()
Gets the existing item that is being replaced.
Returns:
the existing item
newItem
@Contract
(
pure
=true,
value
="-> new")
ItemStack
newItem
()
Gets the new item that is replacing the existing item.
Returns:
the new item