Package net.minecraft.loot.conditions
Class TableBonus
- java.lang.Object
-
- net.minecraft.loot.conditions.TableBonus
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class TableBonus extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableBonus.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private Enchantment
enchantment
private float[]
values
-
Constructor Summary
Constructors Modifier Constructor Description private
TableBonus(Enchantment p_i51207_1_, float[] p_i51207_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ILootCondition.IBuilder
bonusLevelFlatChance(Enchantment p_215955_0_, float... p_215955_1_)
java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootConditionType
getType()
boolean
test(LootContext p_test_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.loot.IParameterized
validate
-
-
-
-
Field Detail
-
enchantment
private final Enchantment enchantment
-
values
private final float[] values
-
-
Constructor Detail
-
TableBonus
private TableBonus(Enchantment p_i51207_1_, float[] p_i51207_2_)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
- Specified by:
getReferencedContextParams
in interfaceIParameterized
-
test
public boolean test(LootContext p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
bonusLevelFlatChance
public static ILootCondition.IBuilder bonusLevelFlatChance(Enchantment p_215955_0_, float... p_215955_1_)
-
-