public class EnchantWithLevelsLootFunction extends ConditionalLootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantWithLevelsLootFunction.Builder |
static class |
EnchantWithLevelsLootFunction.Serializer |
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) |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplygetRequiredParametersandThenprivate final LootTableRange range
private final boolean treasureEnchantmentsAllowed
private EnchantWithLevelsLootFunction(LootCondition[] conditions, LootTableRange range, boolean treasureEnchantmentsAllowed)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process in class ConditionalLootFunctionpublic static EnchantWithLevelsLootFunction.Builder builder(LootTableRange range)