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