public class TableBonus extends java.lang.Object implements ILootCondition
Modifier and Type | Class and Description |
---|---|
static class |
TableBonus.Serializer |
ILootCondition.AbstractSerializer<T extends ILootCondition>, ILootCondition.IBuilder
Modifier and Type | Field and Description |
---|---|
private float[] |
chances |
private Enchantment |
enchantment |
Modifier | Constructor and Description |
---|---|
private |
TableBonus(Enchantment enchantment,
float[] chances) |
Modifier and Type | Method and Description |
---|---|
static ILootCondition.IBuilder |
builder(Enchantment enchantmentIn,
float... chancesIn) |
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 Enchantment enchantment
private final float[] chances
private TableBonus(Enchantment enchantment, float[] chances)
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(Enchantment enchantmentIn, float... chancesIn)