public class SetDamageLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetDamageLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private UniformLootTableRange |
durabilityRange |
private static Logger |
LOGGER |
conditions
Modifier | Constructor and Description |
---|---|
private |
SetDamageLootFunction(LootCondition[] contents,
UniformLootTableRange durabilityRange) |
Modifier and Type | Method and Description |
---|---|
static ConditionalLootFunction.Builder<?> |
builder(UniformLootTableRange durabilityRange) |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private static final Logger LOGGER
private final UniformLootTableRange durabilityRange
private SetDamageLootFunction(LootCondition[] contents, UniformLootTableRange durabilityRange)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static ConditionalLootFunction.Builder<?> builder(UniformLootTableRange durabilityRange)