RuneHive-Game
Loading...
Searching...
No Matches
CombatEffectType.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.effect;
2
3import com.google.common.collect.ImmutableSet;
4import com.runehive.game.world.entity.combat.effect.impl.*;
5
6/**
7 * The enumerated type whose values represent the collection of different combat
8 * effect types.
9 *
10 * @author lare96 <http://github.org/lare96>
11 */
12public enum CombatEffectType {
19 public static final ImmutableSet<CombatEffectType> TYPES = ImmutableSet.copyOf(values());
20
21 static {
22 TYPES.forEach($it -> CombatEffect.EFFECTS.put($it, $it.getEffect()));
23 }
24
25 /** The combat effect that contains the data for this type. */
26 private final CombatEffect effect;
27
28 /** Creates a new {@link CombatEffectType}. */
30 this.effect = effect;
31 }
32
33 /** Gets the combat effect that contains the data for this type. */
34 public final CombatEffect getEffect() {
35 return effect;
36 }
37}
Some sort of temporary effect applied to a Mob during combat.
static final Map< CombatEffectType, CombatEffect > EFFECTS
The map of all of the combat effect types mapped to their respective listeners.
The class which is responsible for the effect when you drink an anti-fire potion.
The combat effect applied when a character needs to be poisoned.
The combat effect applied when a player needs to be skulled.
The combat effect applied when a player needs to be teleblocked.
The combat effect applied when a character needs to be venomed.
final CombatEffect effect
The combat effect that contains the data for this type.
final CombatEffect getEffect()
Gets the combat effect that contains the data for this type.
CombatEffectType(CombatEffect effect)
Creates a new CombatEffectType.
static final ImmutableSet< CombatEffectType > TYPES