Glow Module
Overview
The glow module allows you to take advantage of the vanilla Minecraft Glow Effect that is usually applied when hit by spectral arrows.
- Backports all vanilla Minecraft glow effect functionality, found on 1.9+ to the 1.7 and 1.8 version of Lunar Client.
- Adds improvements to glow effect for Lunar Client users.
- Customizable colors for the glow effect, different from the vanilla Minecraft colors.
Highlight any user with the glow effect, of any color on all versions!
Integration
Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.
Override a Glow Effect
public void overrideGlowEffectExample(UUID glowingPlayer) {
this.glowModule.overrideGlow(Recipients.ofEveryone(),
glowingPlayer,
Color.RED
);
}
Removing a Glow Effect
public void resetGlowEffectExample(UUID glowingPlayer) {
this.glowModule.resetGlow(Recipients.ofEveryone(), glowingPlayer);
}
Resetting all Glow Effects
public void resetGlowEffectsExample(Player viewer) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(this.glowModule::resetGlow);
}
overrideGlowEffectExample
Parameters
Recipients recipients
- A list of all the player(s) you want to be able to see the updated glow effect.
UUID target
- The player or living entity you want to display the glow effect on.
Color glowColor
- How you'll dictate the color of the glow effect, see the colors page for more.