public class SetNBT extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetNBT.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private CompoundNBT |
tag |
conditions
Modifier | Constructor and Description |
---|---|
private |
SetNBT(ILootCondition[] conditionsIn,
CompoundNBT tagIn) |
Modifier and Type | Method and Description |
---|---|
static LootFunction.Builder<?> |
builder(CompoundNBT p_215952_0_) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
getRequiredParameters
private final CompoundNBT tag
private SetNBT(ILootCondition[] conditionsIn, CompoundNBT tagIn)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static LootFunction.Builder<?> builder(CompoundNBT p_215952_0_)