Class ArmorStandData
java.lang.Object
studio.magemonkey.fabled.api.armorstand.ArmorStandData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArmorStands(String key) Fetches an active armor stand by keygetKey(ArmorStandInstance armorStand) booleanisValid()voidregister(ArmorStandInstance armorStand, String key) voidremove()Removes and unregisters all armor stands for this targetvoidbooleanremove(org.bukkit.entity.ArmorStand armorStand) Removes and unregisters the instance wrapping the given armor stand entityvoidremove(ArmorStandInstance armorStand) voidtick()Ticks each armor stand for the target
-
Constructor Details
-
ArmorStandData
public ArmorStandData(org.bukkit.entity.LivingEntity target) - Parameters:
target- target of the armor stands
-
-
Method Details
-
isValid
public boolean isValid()- Returns:
- true if should keep the data, false otherwise
-
getArmorStands
Fetches an active armor stand by key- Parameters:
key- armor stand key- Returns:
- active armor stand or null if not found
-
register
-
tick
public void tick()Ticks each armor stand for the target -
getKey
-
remove
public void remove()Removes and unregisters all armor stands for this target -
remove
-
remove
public boolean remove(org.bukkit.entity.ArmorStand armorStand) Removes and unregisters the instance wrapping the given armor stand entity- Parameters:
armorStand- armor stand entity to remove- Returns:
- true if an instance was found and removed, false otherwise
-
remove
-