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, wait
func_215858_a
getRequiredParameters
private 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 LootFunction
public static LootFunction.Builder<?> func_215931_a(RandomValueRange p_215931_0_)