public class PlayerRewards extends java.lang.Object implements Multipliable<PlayerRewards>
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerRewards.Rewards |
| Constructor and Description |
|---|
PlayerRewards(double multiplier) |
PlayerRewards(PlayerRewards other,
double newMultiplier) |
| Modifier and Type | Method and Description |
|---|---|
Action |
get(PlayerRewards.Rewards key,
Action defaultValue) |
Action |
getFishingFailure() |
Action |
getFishingSuccess() |
double |
getMultiplier() |
java.util.Collection<Action> |
getValues()
Retrieve every reward stored.
|
void |
put(java.lang.String key,
Action value) |
void |
putAll(PlayerRewards other) |
PlayerRewards |
withMultiplier(double newMultiplier)
Returns a shallow copy of this object with a different experience multiplier.
|
public PlayerRewards(double multiplier)
public PlayerRewards(PlayerRewards other, double newMultiplier)
public PlayerRewards withMultiplier(double newMultiplier)
MultipliablewithMultiplier in interface Multipliable<PlayerRewards>newMultiplier - - New multiplier value.public void put(java.lang.String key,
Action value)
throws ParsingException
ParsingExceptionpublic void putAll(PlayerRewards other)
public Action get(PlayerRewards.Rewards key, Action defaultValue)
public java.util.Collection<Action> getValues()
public double getMultiplier()
getMultiplier in interface Multipliable<PlayerRewards>public Action getFishingSuccess()
public Action getFishingFailure()