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, validate
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 LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static EnchantWithLevelsLootFunction.Builder builder(LootTableRange range)