Package net.minecraft.loot.conditions
Class RandomChance
java.lang.Object
net.minecraft.loot.conditions.RandomChance
- All Implemented Interfaces:
 Predicate<LootContext>,ILootCondition,IParameterized
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetType()static ILootCondition.IBuilderrandomChance(float p_216004_0_) booleantest(LootContext p_test_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams, validate 
- 
Field Details
- 
probability
private final float probability 
 - 
 - 
Constructor Details
- 
RandomChance
private RandomChance(float p_i46615_1_)  
 - 
 - 
Method Details
- 
getType
- Specified by:
 getTypein interfaceILootCondition
 - 
test
- Specified by:
 testin interfacePredicate<LootContext>
 - 
randomChance
 
 -