Class ValueCheckCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.ValueCheckCondition
- 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 NumberProvider(package private) final IntRange -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>getType()static LootItemCondition.BuilderhasValue(NumberProvider p_165529_, IntRange p_165530_) booleantest(LootContext p_165527_) 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
-
provider
-
range
-
-
Constructor Details
-
ValueCheckCondition
ValueCheckCondition(NumberProvider p_165523_, IntRange p_165524_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceLootContextUser
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
hasValue
-