Constructor and Description |
---|
DamageFunction(int min,
int max)
Instantiates a DamageFunction.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
apply(org.bukkit.inventory.ItemStack original,
Random r)
Applies the function to an ItemStack.
|
public DamageFunction(int min, int max)
min
- Minimum amount of damage (percentage, out of 100)max
- Maximum amount of damage (percentage, out of 100)public org.bukkit.inventory.ItemStack apply(org.bukkit.inventory.ItemStack original, Random r)
Copyright © 2020. All rights reserved.