public class SetMetadata extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetMetadata.Serializer |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private RandomValueRange |
metaRange |
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
private static final org.apache.logging.log4j.Logger LOGGER
private final RandomValueRange metaRange
public SetMetadata(LootCondition[] conditionsIn, RandomValueRange metaRangeIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction