Interface EntityEquipmentChangedEvent.EquipmentChange

Enclosing class:
EntityEquipmentChangedEvent

@NonExtendable public static interface EntityEquipmentChangedEvent.EquipmentChange
Represents a change in equipment for a single equipment slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the new item that is replacing the existing item.
    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