public class RandomChanceWithLooting extends java.lang.Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
RandomChanceWithLooting.Serializer |
Modifier and Type | Field and Description |
---|---|
private float |
chance |
private float |
lootingMultiplier |
Constructor and Description |
---|
RandomChanceWithLooting(float chanceIn,
float lootingMultiplierIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
testCondition(java.util.Random rand,
LootContext context) |
private final float chance
private final float lootingMultiplier
public RandomChanceWithLooting(float chanceIn, float lootingMultiplierIn)
public boolean testCondition(java.util.Random rand, LootContext context)
testCondition
in interface LootCondition