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
Modifier and TypeClassDescriptionstatic class
An entry which has been changed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCheck for changes in the armor slots.Check for changes in the inventory view.org.bukkit.entity.LivingEntity
The entity whose equipment is being monitored.void
Reset 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.
-