public class RandomChance extends java.lang.Object implements ILootCondition
Modifier and Type | Class and Description |
---|---|
static class |
RandomChance.Serializer |
ILootCondition.AbstractSerializer<T extends ILootCondition>, ILootCondition.IBuilder
Modifier and Type | Field and Description |
---|---|
private float |
chance |
Modifier | Constructor and Description |
---|---|
private |
RandomChance(float chanceIn) |
Modifier and Type | Method and Description |
---|---|
static ILootCondition.IBuilder |
builder(float chanceIn) |
boolean |
test(LootContext p_test_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_225580_a_, getRequiredParameters
public boolean test(LootContext p_test_1_)
test
in interface java.util.function.Predicate<LootContext>
public static ILootCondition.IBuilder builder(float chanceIn)