public class WauzPlayerEffect
extends java.lang.Object
WauzPlayerEffects
Modifier and Type | Field and Description |
---|---|
private int |
duration
The remaining duration of the effect in seconds.
|
private int |
power
The strength of the effect.
|
private WauzPlayerEffectSource |
source
The source of the effect.
|
private WauzPlayerEffectType |
type
The type of the effect.
|
Constructor and Description |
---|
WauzPlayerEffect(WauzPlayerEffectType type,
WauzPlayerEffectSource source,
int duration,
int power)
Creates a new temporary status effect on a player.
|
Modifier and Type | Method and Description |
---|---|
int |
getDuration() |
int |
getPower() |
double |
getPowerDecimal() |
WauzPlayerEffectSource |
getSource() |
WauzPlayerEffectType |
getType() |
boolean |
reduceDuration()
Reduces the effect duration by 1 second.
|
java.lang.String |
toString()
Returns the name of the effect in a scoreboard friendly format.
|
private final WauzPlayerEffectType type
private final WauzPlayerEffectSource source
private int duration
private int power
public WauzPlayerEffect(WauzPlayerEffectType type, WauzPlayerEffectSource source, int duration, int power)
type
- The type of the effect.source
- The source of the effect.duration
- The remaining duration of the effect in seconds.power
- The strength of the effect.public boolean reduceDuration()
public WauzPlayerEffectType getType()
public WauzPlayerEffectSource getSource()
public int getDuration()
public int getPower()
public double getPowerDecimal()
public java.lang.String toString()
toString
in class java.lang.Object