public class EnchantRandomly extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantRandomly.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>ILootFunction.IBuilder| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Enchantment> |
enchantments |
private static org.apache.logging.log4j.Logger |
LOGGER |
conditions| Modifier | Constructor and Description |
|---|---|
private |
EnchantRandomly(ILootCondition[] p_i51238_1_,
java.util.Collection<Enchantment> p_i51238_2_) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
doApply(ItemStack stack,
LootContext context) |
static LootFunction.Builder<?> |
func_215900_c() |
apply, builder, func_225580_a_clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_215858_agetRequiredParametersprivate static final org.apache.logging.log4j.Logger LOGGER
private final java.util.List<Enchantment> enchantments
private EnchantRandomly(ILootCondition[] p_i51238_1_, java.util.Collection<Enchantment> p_i51238_2_)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply in class LootFunctionpublic static LootFunction.Builder<?> func_215900_c()