public static class EnchantWithLevelsLootFunction.Builder extends ConditionalLootFunction.Builder<EnchantWithLevelsLootFunction.Builder>
Modifier and Type | Field and Description |
---|---|
private LootTableRange |
range |
private boolean |
treasureEnchantmentsAllowed |
Constructor and Description |
---|
Builder(LootTableRange range) |
Modifier and Type | Method and Description |
---|---|
EnchantWithLevelsLootFunction.Builder |
allowTreasureEnchantments() |
LootFunction |
build() |
protected EnchantWithLevelsLootFunction.Builder |
getThisBuilder() |
conditionally, getConditions, getThis
private final LootTableRange range
private boolean treasureEnchantmentsAllowed
public Builder(LootTableRange range)
protected EnchantWithLevelsLootFunction.Builder getThisBuilder()
getThisBuilder
in class ConditionalLootFunction.Builder<EnchantWithLevelsLootFunction.Builder>
public EnchantWithLevelsLootFunction.Builder allowTreasureEnchantments()
public LootFunction build()