net.minecraft.world.level.storage.loot.predicates

public record LootItemRandomChanceCondition

implements LootItemCondition

fad
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceCondition
net.minecraft.class_219
net.minecraft.loot.condition.RandomChanceLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionRandomChance

Field summary

Modifier and TypeField
private final NumberProvider
b
chance
comp_2781
chance
public static final com.mojang.serialization.MapCodec<LootItemRandomChanceCondition>
a
CODEC
field_45873
CODEC

Constructor summary

ModifierConstructor
public (NumberProvider arg0)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_934(class_47 arg0)
test(LootContext arg0)
public static LootItemCondition$Builder
a(float arg0)
randomChance(float arg0)
method_932(float arg0)
builder(float chance)
public static LootItemCondition$Builder
a(fau arg0)
randomChance(NumberProvider arg0)
method_60310(class_5658 arg0)
builder(LootNumberProvider chance)
public NumberProvider
c()
chance()
comp_2781()
chance()