public class SetNbtLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetNbtLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private CompoundTag |
tag |
conditions
Modifier | Constructor and Description |
---|---|
private |
SetNbtLootFunction(LootCondition[] conditions,
CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
static ConditionalLootFunction.Builder<?> |
builder(CompoundTag tag) |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private final CompoundTag tag
private SetNbtLootFunction(LootCondition[] conditions, CompoundTag tag)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static ConditionalLootFunction.Builder<?> builder(CompoundTag tag)