Package net.minecraft.loot.conditions
Class TableBonus
java.lang.Object
net.minecraft.loot.conditions.TableBonus
- All Implemented Interfaces:
Predicate<LootContext>
,ILootCondition
,IParameterized
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILootCondition.IBuilder
bonusLevelFlatChance
(Enchantment p_215955_0_, float... p_215955_1_) Set<LootParameter<?>>
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 Details
-
enchantment
-
values
private final float[] values
-
-
Constructor Details
-
TableBonus
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceILootCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceIParameterized
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
bonusLevelFlatChance
public static ILootCondition.IBuilder bonusLevelFlatChance(Enchantment p_215955_0_, float... p_215955_1_)
-