Faction.FZapFactorpublic 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.FZapFactorgainFactor in interface Faction.FZapFactorFaction.FZapFactor.setGainFactor(double)public void setGainFactor(double val)
Faction.FZapFactorsetGainFactor in interface Faction.FZapFactorval - the gain factor (0-1)Faction.FZapFactor.gainFactor()public double lossFactor()
Faction.FZapFactorlossFactor in interface Faction.FZapFactorFaction.FZapFactor.setGainFactor(double)public void setLossFactor(double val)
Faction.FZapFactorsetLossFactor in interface Faction.FZapFactorval - the loss factor (0-1)Faction.FZapFactor.gainFactor()public java.lang.String MOBMask()
Faction.FZapFactorMOBMask in interface Faction.FZapFactorFaction.FZapFactor.setMOBMask(String)public MaskingLibrary.CompiledZMask compiledMOBMask()
Faction.FZapFactorcompiledMOBMask in interface Faction.FZapFactorFaction.FZapFactor.setMOBMask(String)public void setMOBMask(java.lang.String str)
Faction.FZapFactorsetMOBMask in interface Faction.FZapFactorstr - the mask to determine which mobs in the players presence will be affectedMaskingLibrary,
Faction.FZapFactor.MOBMask()public java.lang.String toString()
Faction.FZapFactortoString in interface Faction.FZapFactortoString in class java.lang.ObjectFaction.addFactor(double,double,String)