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