public class EnchantWithLevelsLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
EnchantWithLevelsLootFunction.Builder |
static class |
EnchantWithLevelsLootFunction.Factory |
ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private LootTableRange |
range |
private boolean |
treasureEnchantmentsAllowed |
conditions
Modifier | Constructor and Description |
---|---|
private |
EnchantWithLevelsLootFunction(LootCondition[] conditions,
LootTableRange range,
boolean treasureEnchantmentsAllowed) |
Modifier and Type | Method and Description |
---|---|
static EnchantWithLevelsLootFunction.Builder |
builder(LootTableRange range) |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, check
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private final LootTableRange range
private final boolean treasureEnchantmentsAllowed
private EnchantWithLevelsLootFunction(LootCondition[] conditions, LootTableRange range, boolean treasureEnchantmentsAllowed)
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static EnchantWithLevelsLootFunction.Builder builder(LootTableRange range)