public class LootingEnchantBonus extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LootingEnchantBonus.Builder |
static class |
LootingEnchantBonus.Serializer |
ILootFunction.IBuilder| Modifier and Type | Field and Description |
|---|---|
private RandomValueRange |
count |
private int |
limit |
conditions| Modifier | Constructor and Description |
|---|---|
private |
LootingEnchantBonus(ILootCondition[] conditions,
RandomValueRange countIn,
int limitIn) |
| Modifier and Type | Method and Description |
|---|---|
static LootingEnchantBonus.Builder |
builder(RandomValueRange range) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
private boolean |
func_215917_b() |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
apply, builder, func_225580_a_clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_215858_aprivate final RandomValueRange count
private final int limit
private LootingEnchantBonus(ILootCondition[] conditions, RandomValueRange countIn, int limitIn)
public java.util.Set<LootParameter<?>> getRequiredParameters()
private boolean func_215917_b()
public ItemStack doApply(ItemStack stack, LootContext context)
doApply in class LootFunctionpublic static LootingEnchantBonus.Builder builder(RandomValueRange range)