public class SetMetadata extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetMetadata.Serializer |
Constructor and Description |
---|
SetMetadata(LootCondition[] conditionsIn,
RandomValueRange metaRangeIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditions
public SetMetadata(LootCondition[] conditionsIn, RandomValueRange metaRangeIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction