public class ApplyBonus extends LootFunction
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ApplyBonus.BinomialWithBonusCountFormula |
(package private) static interface |
ApplyBonus.IFormula |
(package private) static interface |
ApplyBonus.IFormulaDeserializer |
(package private) static class |
ApplyBonus.OreDropsFormula |
static class |
ApplyBonus.Serializer |
(package private) static class |
ApplyBonus.UniformBonusCountFormula |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private Enchantment |
enchantment |
private static java.util.Map<ResourceLocation,ApplyBonus.IFormulaDeserializer> |
field_215875_a |
private ApplyBonus.IFormula |
field_215877_d |
conditions
Modifier | Constructor and Description |
---|---|
private |
ApplyBonus(ILootCondition[] conditionsIn,
Enchantment enchantmentIn,
ApplyBonus.IFormula p_i51246_3_) |
Modifier and Type | Method and Description |
---|---|
static LootFunction.Builder<?> |
binomialWithBonusCount(Enchantment p_215870_0_,
float p_215870_1_,
int p_215870_2_) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
static LootFunction.Builder<?> |
oreDrops(Enchantment p_215869_0_) |
static LootFunction.Builder<?> |
uniformBonusCount(Enchantment p_215871_0_) |
static LootFunction.Builder<?> |
uniformBonusCount(Enchantment p_215865_0_,
int p_215865_1_) |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
private static final java.util.Map<ResourceLocation,ApplyBonus.IFormulaDeserializer> field_215875_a
private final Enchantment enchantment
private final ApplyBonus.IFormula field_215877_d
private ApplyBonus(ILootCondition[] conditionsIn, Enchantment enchantmentIn, ApplyBonus.IFormula p_i51246_3_)
public java.util.Set<LootParameter<?>> getRequiredParameters()
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static LootFunction.Builder<?> binomialWithBonusCount(Enchantment p_215870_0_, float p_215870_1_, int p_215870_2_)
public static LootFunction.Builder<?> oreDrops(Enchantment p_215869_0_)
public static LootFunction.Builder<?> uniformBonusCount(Enchantment p_215871_0_)
public static LootFunction.Builder<?> uniformBonusCount(Enchantment p_215865_0_, int p_215865_1_)