Colored Fire Module
Overview
The colored fire module allows you to modify the color of the flames that appear on a burning entity.
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
Recipients recipients
- A list of all the player(s) you want to be able to see the updated fire color.
UUID target
- The player or living entity you want to display the updated fire color on.
Color flameColor
- How you'll dictate the color of the fire, see the colors page for more.