Class LootItemRandomChanceWithLootingCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithLootingCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder
-
Field Summary
Modifier and TypeFieldDescription(package private) float
(package private) float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>
getType()
static LootItemCondition.Builder
randomChanceAndLootingBoost(float p_81964_, float p_81965_)
boolean
test(LootContext p_81967_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getType
in interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
randomChanceAndLootingBoost
public static LootItemCondition.Builder randomChanceAndLootingBoost(float p_81964_, float p_81965_)
-