Package org.kingdoms.utils.scoreboards
Class Glow
java.lang.Object
org.kingdoms.utils.scoreboards.Glow
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglowBlock(org.bukkit.Location location) static booleanisGlowing(org.bukkit.entity.Entity entity, org.bukkit.entity.Player receiver) Check if an entity is glowingstatic voidremoveGlow(org.bukkit.entity.Player receiver) static FieldresolveByLastType(Class<?> clazz, Class<?> type) protected static voidsendGlowPacket(org.bukkit.entity.Player receiver, boolean glowing, org.bukkit.entity.Entity entity) static voidsetGlowing(org.bukkit.entity.Player receiver, GlowScoreboard.Color color, org.bukkit.entity.Entity... members)
-
Constructor Details
-
Glow
public Glow()
-
-
Method Details
-
setGlowing
public static void setGlowing(org.bukkit.entity.Player receiver, GlowScoreboard.Color color, org.bukkit.entity.Entity... members) -
removeGlow
public static void removeGlow(org.bukkit.entity.Player receiver) -
isGlowing
public static boolean isGlowing(org.bukkit.entity.Entity entity, org.bukkit.entity.Player receiver) Check if an entity is glowing- Parameters:
entity-Entityto checkreceiver-Playerreceiver to check (as used in the setGlowing methods)- Returns:
trueif the entity appears glowing to the player
-
glowBlock
public static void glowBlock(org.bukkit.Location location) -
sendGlowPacket
protected static void sendGlowPacket(org.bukkit.entity.Player receiver, boolean glowing, org.bukkit.entity.Entity entity) -
resolveByLastType
public static Field resolveByLastType(Class<?> clazz, Class<?> type) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-