public class SetDamage extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
SetDamage.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>ILootFunction.IBuilder| Modifier and Type | Field and Description |
|---|---|
private RandomValueRange |
damageRange |
private static org.apache.logging.log4j.Logger |
LOGGER |
conditions| Modifier | Constructor and Description |
|---|---|
private |
SetDamage(ILootCondition[] conditionsIn,
RandomValueRange damageRangeIn) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
doApply(ItemStack stack,
LootContext context) |
static LootFunction.Builder<?> |
func_215931_a(RandomValueRange p_215931_0_) |
apply, builder, func_225580_a_clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_215858_agetRequiredParametersprivate static final org.apache.logging.log4j.Logger LOGGER
private final RandomValueRange damageRange
private SetDamage(ILootCondition[] conditionsIn, RandomValueRange damageRangeIn)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply in class LootFunctionpublic static LootFunction.Builder<?> func_215931_a(RandomValueRange p_215931_0_)