public class SetNBT extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetNBT.Serializer |
Modifier and Type | Field and Description |
---|---|
private NBTTagCompound |
tag |
Constructor and Description |
---|
SetNBT(LootCondition[] conditionsIn,
NBTTagCompound tagIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditions
private final NBTTagCompound tag
public SetNBT(LootCondition[] conditionsIn, NBTTagCompound tagIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction