Potion Effects
Display your currently active potion effects on the HUD.
Integration
How to toggle the mod
public void togglePotionEffectsExample(Player viewer, boolean value) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModPotionEffects.ENABLED, value));
}Available options
-
ENABLED- Config Key:
enabled - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
SCALE- Config Key:
scale - Values
- Type:
Float - Default:
1.0F - Minimum:
0.5F - Maximum:
1.5F
- Type:
- Config Key:
-
SHOW_IN_INVENTORY- Config Key:
show-in-inventory - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
SHOW_WHILE_TYPING- Config Key:
show-while-typing - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
EFFECT_NAME- Config Key:
effect-name - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
TEXT_SHADOW- Config Key:
text-shadow - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
BACKGROUND- Config Key:
background - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
MINIMAL_MODE- Config Key:
minimal-mode - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
MINIMAL_MODE_HORIZONTAL- Config Key:
minimal-mode-horizontal - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BORDER- Config Key:
border - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BORDER_THICKNESS- Config Key:
border-thickness - Values
- Type:
Float - Default:
0.5F - Minimum:
0.5F - Maximum:
3.0F
- Type:
- Config Key:
-
FORMATTED_DURATIONS- Config Key:
formatted-durations - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
UPPERCASE_POTION_NAMES- Config Key:
uppercase-potion-names - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
REVERSED_TEXT- Config Key:
reversed-text - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
HIDE_MODERN_ICONS- Config Key:
hide-modern-icons - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
POTION_BLINK- Config Key:
potion-blink - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
BLINK_DURATION- Config Key:
blink-duration - Values
- Type:
Integer - Default:
10 - Minimum:
2 - Maximum:
20
- Type:
- Config Key:
-
BACKGROUND_COLOR- Config Key:
background-color - Values
- Type:
String - Default:
#6F000000
- Type:
- Config Key:
-
BORDER_COLOR- Config Key:
border-color - Values
- Type:
String - Default:
#9F000000
- Type:
- Config Key:
-
COLOR_NAME_BASED_ON_EFFECT- Config Key:
color-name-based-on-effect - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
TEXT_COLOR- Config Key:
text-color - Values
- Type:
String - Default:
#FFFFFFFF
- Type:
- Config Key:
-
DURATION_COLOR- Config Key:
duration-color - Values
- Type:
String - Default:
#FFFFFFFF
- Type:
- Config Key:
-
EXCLUDE_PERM- Config Key:
exclude-perm - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_ABSORPTION- Config Key:
exclude-absorption - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_BLINDNESS- Config Key:
exclude-blindness - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_FIRE_RES- Config Key:
exclude-fire-res - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_HASTE- Config Key:
exclude-haste - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_HEALTH_BOOST- Config Key:
exclude-health-boost - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_HUNGER- Config Key:
exclude-hunger - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_INSTANT_DAMAGE- Config Key:
exclude-instant-damage - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_INSTANT_HEALTH- Config Key:
exclude-instant-health - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_INVIS- Config Key:
exclude-invis - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_JUMP_BOOST- Config Key:
exclude-jump-boost - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_MINING_FATIGUE- Config Key:
exclude-mining-fatigue - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_NAUSEA- Config Key:
exclude-nausea - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_NIGHT_VISION- Config Key:
exclude-night-vision - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_POISON- Config Key:
exclude-poison - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_REGEN- Config Key:
exclude-regen - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_RESISTANCE- Config Key:
exclude-resistance - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_SATURATION- Config Key:
exclude-saturation - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_SLOWNESS- Config Key:
exclude-slowness - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_SPEED- Config Key:
exclude-speed - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_STRENGTH- Config Key:
exclude-strength - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_WATER_BREATHING- Config Key:
exclude-water-breathing - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_WEAKNESS- Config Key:
exclude-weakness - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
EXCLUDE_WITHER- Config Key:
exclude-wither - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key: