Apollo
Developers
Modules
Colored Fire

Colored Fire Module

Overview

The colored fire module allows you to modify the color of the flames that appear on a burning entity.

Colored Fire Module Example

Make users burn with any color!

Integration

Sample Code

Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.

Override a Fire Color

public void overrideColoredFireExample(UUID burningPlayer) {
    this.coloredFireModule.overrideColoredFire(Recipients.ofEveryone(),
        burningPlayer,
        Color.BLUE
    );
}

Removing a Fire Color

public void resetColoredFireExample(UUID burningPlayer) {
    this.coloredFireModule.resetColoredFire(Recipients.ofEveryone(), burningPlayer);
}

Resetting all Fire Colors

public void resetColoredFiresExample(Player viewer) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(this.coloredFireModule::resetColoredFires);
}

overrideColoredFire Parameters

  1. Recipients recipients
    • A list of all the player(s) you want to be able to see the updated fire color.
  2. UUID target
    • The player or living entity you want to display the updated fire color on.
  3. Color flameColor
    • How you'll dictate the color of the fire, see the colors page for more.