public class EnchantWithLevels extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantWithLevels.Builder |
static class |
EnchantWithLevels.Serializer |
ILootFunction.IBuilder| Modifier and Type | Field and Description |
|---|---|
private boolean |
isTreasure |
private IRandomRange |
randomLevel |
conditions| Modifier | Constructor and Description |
|---|---|
private |
EnchantWithLevels(ILootCondition[] p_i51236_1_,
IRandomRange p_i51236_2_,
boolean p_i51236_3_) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
doApply(ItemStack stack,
LootContext context) |
static EnchantWithLevels.Builder |
func_215895_a(IRandomRange p_215895_0_) |
apply, builder, func_225580_a_clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_215858_agetRequiredParametersprivate final IRandomRange randomLevel
private final boolean isTreasure
private EnchantWithLevels(ILootCondition[] p_i51236_1_, IRandomRange p_i51236_2_, boolean p_i51236_3_)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply in class LootFunctionpublic static EnchantWithLevels.Builder func_215895_a(IRandomRange p_215895_0_)