public class RandomChanceLootCondition extends Object implements LootCondition
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomChanceLootCondition.Factory |
LootCondition.Builder| Modifier and Type | Field and Description |
|---|---|
private float |
chance |
| Modifier | Constructor and Description |
|---|---|
private |
RandomChanceLootCondition(float chance) |
| Modifier and Type | Method and Description |
|---|---|
static LootCondition.Builder |
builder(float chance) |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheck, getRequiredParameterspublic boolean test(LootContext lootContext)
test in interface Predicate<LootContext>public static LootCondition.Builder builder(float chance)