public abstract class LootFunction extends java.lang.Object implements ILootFunction
Modifier and Type | Class and Description |
---|---|
static class |
LootFunction.Builder<T extends LootFunction.Builder<T>> |
static class |
LootFunction.Serializer<T extends LootFunction> |
(package private) static class |
LootFunction.SimpleBuilder |
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<LootContext> |
combinedConditions |
protected ILootCondition[] |
conditions |
Modifier | Constructor and Description |
---|---|
protected |
LootFunction(ILootCondition[] conditionsIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack p_apply_1_,
LootContext p_apply_2_) |
protected static LootFunction.Builder<?> |
builder(java.util.function.Function<ILootCondition[],ILootFunction> p_215860_0_) |
protected abstract ItemStack |
doApply(ItemStack stack,
LootContext context) |
void |
func_225580_a_(ValidationTracker p_225580_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
getRequiredParameters
protected final ILootCondition[] conditions
private final java.util.function.Predicate<LootContext> combinedConditions
protected LootFunction(ILootCondition[] conditionsIn)
public final ItemStack apply(ItemStack p_apply_1_, LootContext p_apply_2_)
apply
in interface java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
protected abstract ItemStack doApply(ItemStack stack, LootContext context)
public void func_225580_a_(ValidationTracker p_225580_1_)
func_225580_a_
in interface IParameterized
protected static LootFunction.Builder<?> builder(java.util.function.Function<ILootCondition[],ILootFunction> p_215860_0_)