public class EnchantRandomlyLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
EnchantRandomlyLootFunction.Builder |
static class |
EnchantRandomlyLootFunction.Serializer |
ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private List<Enchantment> |
enchantments |
private static Logger |
LOGGER |
conditions
Modifier | Constructor and Description |
---|---|
private |
EnchantRandomlyLootFunction(LootCondition[] conditions,
Collection<Enchantment> enchantments) |
Modifier and Type | Method and Description |
---|---|
static ConditionalLootFunction.Builder<?> |
builder() |
LootFunctionType |
getType() |
private static ItemStack |
method_26266(ItemStack itemStack,
Enchantment enchantment,
Random random) |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private static final Logger LOGGER
private final List<Enchantment> enchantments
private EnchantRandomlyLootFunction(LootCondition[] conditions, Collection<Enchantment> enchantments)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
private static ItemStack method_26266(ItemStack itemStack, Enchantment enchantment, Random random)
public static ConditionalLootFunction.Builder<?> builder()