Package net.minestom.server.event.item
Class EntityEquipEvent
java.lang.Object
net.minestom.server.event.item.EntityEquipEvent
- All Implemented Interfaces:
Event
,EntityEvent
,EntityInstanceEvent
,InstanceEvent
,ItemEvent
-
Constructor Summary
ConstructorDescriptionEntityEquipEvent
(@NotNull Entity entity, @NotNull ItemStack equippedItem, @NotNull EquipmentSlot slot) -
Method Summary
Modifier and TypeMethodDescription@NotNull Entity
Gets the entity of this event.@NotNull ItemStack
@NotNull ItemStack
Same asgetEquippedItem()
.@NotNull EquipmentSlot
getSlot()
void
setEquippedItem
(@NotNull ItemStack armorItem) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstance
-
Constructor Details
-
EntityEquipEvent
public EntityEquipEvent(@NotNull @NotNull Entity entity, @NotNull @NotNull ItemStack equippedItem, @NotNull @NotNull EquipmentSlot slot)
-
-
Method Details
-
getEquippedItem
-
setEquippedItem
-
getSlot
-
getItemStack
Same asgetEquippedItem()
.- Specified by:
getItemStack
in interfaceItemEvent
-
getEntity
Description copied from interface:EntityEvent
Gets the entity of this event.- Specified by:
getEntity
in interfaceEntityEvent
- Returns:
- the entity
-