Faction.FZapFactor
public class DefaultFaction.DefaultFactionZapFactor extends java.lang.Object implements Faction.FZapFactor
Constructor | Description |
---|---|
DefaultFactionZapFactor(double gain,
double loss,
java.lang.String mask) |
Modifier and Type | Method | Description |
---|---|---|
MaskingLibrary.CompiledZMask |
compiledMOBMask() |
The compiled mask to tell which mobs to apply this factor to
|
double |
gainFactor() |
Get the gain factor (0-1)
|
double |
lossFactor() |
Set the loss factor (0-1)
|
java.lang.String |
MOBMask() |
The mask to tell which mobs to apply this factor to
|
void |
setGainFactor(double val) |
Set the gain factor (0-1)
|
void |
setLossFactor(double val) |
Set the loss factor (0-1)
|
void |
setMOBMask(java.lang.String str) |
Set the mask to determine which mobs in the players presence will be affected.
|
java.lang.String |
toString() |
Returns a semicolon-delimited string of the values of this factpr, suitable for
using to create a new one later.
|
public DefaultFactionZapFactor(double gain, double loss, java.lang.String mask)
public double gainFactor()
Faction.FZapFactor
gainFactor
in interface Faction.FZapFactor
Faction.FZapFactor.setGainFactor(double)
public void setGainFactor(double val)
Faction.FZapFactor
setGainFactor
in interface Faction.FZapFactor
val
- the gain factor (0-1)Faction.FZapFactor.gainFactor()
public double lossFactor()
Faction.FZapFactor
lossFactor
in interface Faction.FZapFactor
Faction.FZapFactor.setGainFactor(double)
public void setLossFactor(double val)
Faction.FZapFactor
setLossFactor
in interface Faction.FZapFactor
val
- the loss factor (0-1)Faction.FZapFactor.gainFactor()
public java.lang.String MOBMask()
Faction.FZapFactor
MOBMask
in interface Faction.FZapFactor
Faction.FZapFactor.setMOBMask(String)
public MaskingLibrary.CompiledZMask compiledMOBMask()
Faction.FZapFactor
compiledMOBMask
in interface Faction.FZapFactor
Faction.FZapFactor.setMOBMask(String)
public void setMOBMask(java.lang.String str)
Faction.FZapFactor
setMOBMask
in interface Faction.FZapFactor
str
- the mask to determine which mobs in the players presence will be affectedMaskingLibrary
,
Faction.FZapFactor.MOBMask()
public java.lang.String toString()
Faction.FZapFactor
toString
in interface Faction.FZapFactor
toString
in class java.lang.Object
Faction.addFactor(double,double,String)