Class BonusLevelTableCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.BonusLevelTableCondition
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Enchantment(package private) final float[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LootItemCondition.BuilderbonusLevelFlatChance(Enchantment p_81518_, float... p_81519_) Set<LootContextParam<?>>getType()booleantest(LootContext p_81521_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
enchantment
-
values
final float[] values
-
-
Constructor Details
-
BonusLevelTableCondition
BonusLevelTableCondition(Enchantment p_81510_, float[] p_81511_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceLootContextUser
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
bonusLevelFlatChance
public static LootItemCondition.Builder bonusLevelFlatChance(Enchantment p_81518_, float... p_81519_)
-