Class LootItemRandomChanceWithLootingCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithLootingCondition
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescription(package private) float(package private) float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>getType()static LootItemCondition.BuilderrandomChanceAndLootingBoost(float p_81964_, float p_81965_)booleantest(LootContext p_81967_)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
-
percent
final float percent -
lootingMultiplier
final float lootingMultiplier
-
-
Constructor Details
-
LootItemRandomChanceWithLootingCondition
LootItemRandomChanceWithLootingCondition(float p_81956_, float p_81957_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceLootContextUser
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
randomChanceAndLootingBoost
public static LootItemCondition.Builder randomChanceAndLootingBoost(float p_81964_, float p_81965_)
-