Class EquipmentMonitor

java.lang.Object
net.glowstone.inventory.EquipmentMonitor

public final class EquipmentMonitor extends Object
Tracker for when the equipment of an entity is changed.
  • Constructor Details

    • EquipmentMonitor

      public EquipmentMonitor(org.bukkit.entity.LivingEntity entity)
  • Method Details

    • getChanges

      public List<EquipmentMonitor.Entry> getChanges()
      Check for changes in the inventory view.
      Returns:
      The list of changed items.
    • getArmorChanges

      public List<EquipmentMonitor.Entry> getArmorChanges()
      Check for changes in the armor slots.
      Returns:
      The list of changed items in the armor slots.
    • resetChanges

      public void resetChanges()
      Reset all cached changes and update latest content.
    • getEntity

      public org.bukkit.entity.LivingEntity getEntity()
      The entity whose equipment is being monitored.
      Returns:
      The entity.