public class LootingEnchantLootFunction extends ConditionalLootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LootingEnchantLootFunction.Builder |
static class |
LootingEnchantLootFunction.Serializer |
ConditionalLootFunction.Joiner| Modifier and Type | Field and Description |
|---|---|
private UniformLootTableRange |
countRange |
private int |
limit |
conditions| Modifier | Constructor and Description |
|---|---|
private |
LootingEnchantLootFunction(LootCondition[] conditions,
UniformLootTableRange countRange,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
static LootingEnchantLootFunction.Builder |
builder(UniformLootTableRange countRange) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
private boolean |
hasLimit() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyandThenprivate final UniformLootTableRange countRange
private final int limit
private LootingEnchantLootFunction(LootCondition[] conditions, UniformLootTableRange countRange, int limit)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
private boolean hasLimit()
public ItemStack process(ItemStack stack, LootContext context)
process in class ConditionalLootFunctionpublic static LootingEnchantLootFunction.Builder builder(UniformLootTableRange countRange)