mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +01:00
!DURABILITY BAR
This commit is contained in:
parent
2fb3d69307
commit
61644a1b1f
@ -21,6 +21,7 @@ import net.Indyuce.mmoitems.stat.CustomSounds;
|
||||
import net.Indyuce.mmoitems.stat.DisableAdvancedEnchantments;
|
||||
import net.Indyuce.mmoitems.stat.DisableDeathDrop;
|
||||
import net.Indyuce.mmoitems.stat.DisplayName;
|
||||
import net.Indyuce.mmoitems.stat.DurabilityBar;
|
||||
import net.Indyuce.mmoitems.stat.DyeColor;
|
||||
import net.Indyuce.mmoitems.stat.Effects;
|
||||
import net.Indyuce.mmoitems.stat.Elements;
|
||||
@ -100,6 +101,7 @@ public class ItemStats {
|
||||
DURABILITY = new ItemDamage(),
|
||||
CUSTOM_MODEL_DATA = new CustomModelData(),
|
||||
MAX_DURABILITY = new MaximumDurability(),
|
||||
DURABILITY_BAR = new DurabilityBar(),
|
||||
WILL_BREAK = new LostWhenBroken(),
|
||||
NAME = new DisplayName(),
|
||||
LORE = new Lore(),
|
||||
|
11
src/main/java/net/Indyuce/mmoitems/stat/DurabilityBar.java
Normal file
11
src/main/java/net/Indyuce/mmoitems/stat/DurabilityBar.java
Normal file
@ -0,0 +1,11 @@
|
||||
package net.Indyuce.mmoitems.stat;
|
||||
|
||||
import net.Indyuce.mmoitems.stat.type.BooleanStat;
|
||||
import org.bukkit.Material;
|
||||
|
||||
public class DurabilityBar extends BooleanStat {
|
||||
public DurabilityBar() {
|
||||
super("DURABILITY_BAR", Material.DAMAGED_ANVIL, "Show Durability Bar",
|
||||
new String[] { "Enable this to have the green bar", "show when using custom durability." }, new String[] { "!block", "all"});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user