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> |
ILootFunction.IBuilder| Modifier and Type | Field and Description |
|---|---|
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_215856_a(ValidationResults p_215856_1_,
java.util.function.Function<ResourceLocation,LootTable> p_215856_2_,
java.util.Set<ResourceLocation> p_215856_3_,
LootParameterSet p_215856_4_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_215858_agetRequiredParametersprotected final ILootCondition[] conditions
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_215856_a(ValidationResults p_215856_1_, java.util.function.Function<ResourceLocation,LootTable> p_215856_2_, java.util.Set<ResourceLocation> p_215856_3_, LootParameterSet p_215856_4_)
func_215856_a in interface IParameterizedprotected static LootFunction.Builder<?> builder(java.util.function.Function<ILootCondition[],ILootFunction> p_215860_0_)