Package net.glowstone.inventory
Class EquipmentMonitor
java.lang.Object
net.glowstone.inventory.EquipmentMonitor
Tracker for when the equipment of an entity is changed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn entry which has been changed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheck for changes in the armor slots.Check for changes in the inventory view.org.bukkit.entity.LivingEntityThe entity whose equipment is being monitored.voidReset all cached changes and update latest content.
-
Constructor Details
-
EquipmentMonitor
public EquipmentMonitor(org.bukkit.entity.LivingEntity entity)
-
-
Method Details
-
getChanges
Check for changes in the inventory view.- Returns:
- The list of changed items.
-
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.
-