Class LootItemRandomChanceCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceCondition
- 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()static LootItemCondition.BuilderrandomChance(float p_81928_)booleantest(LootContext p_81930_)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
getReferencedContextParams, validate
-
Field Details
-
probability
final float probability
-
-
Constructor Details
-
LootItemRandomChanceCondition
LootItemRandomChanceCondition(float p_81923_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
randomChance
-