public class ValueIndicator
extends java.lang.Object
| Constructor and Description |
|---|
ValueIndicator() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
queueIndicatorDespawn(org.bukkit.entity.Entity dmgIndicator)
Queues the despawn of an indicator in 0.5 seconds.
|
static void |
spawnDamageIndicator(org.bukkit.entity.Entity entity,
java.lang.Integer damage)
Spawns a damage indicator.
|
static void |
spawnDamageIndicator(org.bukkit.entity.Entity entity,
java.lang.Integer damage,
boolean isCritical)
Spawns a damage indicator.
|
static void |
spawnEvadedIndicator(org.bukkit.entity.Entity entity)
Spawns an indicator that spells "EVADED".
|
static void |
spawnExpIndicator(org.bukkit.Location location,
int exp)
Spawns an gained experience indicator
|
static void |
spawnHealIndicator(org.bukkit.Location location,
int heal) |
private static void |
spawnIndicator(org.bukkit.Location location,
java.lang.String display)
Spawns a generic indicator and queues its despawn.
|
static void |
spawnMissedIndicator(org.bukkit.entity.Entity entity)
Spawns an indicator that spells "MISSED".
|
static void |
spawnTestIndicator(org.bukkit.Location location)
Spawns an indicator for debugging purposes.
|
public static void spawnDamageIndicator(org.bukkit.entity.Entity entity,
java.lang.Integer damage)
entity - The entity who owns the indicator.damage - The damage value.spawnIndicator(Location, String)public static void spawnDamageIndicator(org.bukkit.entity.Entity entity,
java.lang.Integer damage,
boolean isCritical)
entity - The entity who owns the indicator.damage - The damage value.isCritical - If it is critical damage. (Shown with prefix and different color)spawnIndicator(Location, String)public static void spawnEvadedIndicator(org.bukkit.entity.Entity entity)
entity - The entity who owns the indicator.spawnIndicator(Location, String)public static void spawnMissedIndicator(org.bukkit.entity.Entity entity)
entity - The entity who owns the indicator.spawnIndicator(Location, String)public static void spawnHealIndicator(org.bukkit.Location location,
int heal)
public static void spawnExpIndicator(org.bukkit.Location location,
int exp)
location - The location to spawn the indicator.exp - The experience amount.spawnIndicator(Location, String)public static void spawnTestIndicator(org.bukkit.Location location)
location - The location to spawn the indicator.spawnIndicator(Location, String)private static void spawnIndicator(org.bukkit.Location location,
java.lang.String display)
location - The location to spawn the indicator.display - The text to display.queueIndicatorDespawn(Entity)private static void queueIndicatorDespawn(org.bukkit.entity.Entity dmgIndicator)
dmgIndicator - The indicator entity.