item identification: Add bars

This commit is contained in:
mkowen1
2021-02-20 14:27:44 -08:00
committed by Jordan Atwood
parent 68a544943c
commit 05cc4f419c
3 changed files with 28 additions and 0 deletions

View File

@@ -147,6 +147,16 @@ enum ItemIdentification
DAEYALT_ORE(Type.ORE, "Daeyalt", "DAE", ItemID.DAEYALT_ORE), DAEYALT_ORE(Type.ORE, "Daeyalt", "DAE", ItemID.DAEYALT_ORE),
LUNAR_ORE(Type.ORE, "Lunar", "LUN", ItemID.LUNAR_ORE), LUNAR_ORE(Type.ORE, "Lunar", "LUN", ItemID.LUNAR_ORE),
//Bars
BRONZE_BAR(Type.BAR, "Bronze", "BRO", ItemID.BRONZE_BAR),
IRON_BAR(Type.BAR, "Iron", "IRO", ItemID.IRON_BAR),
SILVER_BAR(Type.BAR, "Silver", "SIL", ItemID.SILVER_BAR),
STEEL_BAR(Type.BAR, "Steel", "STE", ItemID.STEEL_BAR),
GOLD_BAR(Type.BAR, "Gold", "GOL", ItemID.GOLD_BAR),
MITHRIL_BAR(Type.BAR, "Mithril", "MIT", ItemID.MITHRIL_BAR),
ADAMANTITE_BAR(Type.BAR, "Adaman", "ADA", ItemID.ADAMANTITE_BAR),
RUNITE_BAR(Type.BAR, "Runite", "RUN", ItemID.RUNITE_BAR),
//Gems //Gems
SAPPHIRE(Type.GEM, "Sapphir", "S", ItemID.UNCUT_SAPPHIRE, ItemID.SAPPHIRE), SAPPHIRE(Type.GEM, "Sapphir", "S", ItemID.UNCUT_SAPPHIRE, ItemID.SAPPHIRE),
EMERALD(Type.GEM, "Emerald", "E", ItemID.UNCUT_EMERALD, ItemID.EMERALD), EMERALD(Type.GEM, "Emerald", "E", ItemID.UNCUT_EMERALD, ItemID.EMERALD),
@@ -356,6 +366,7 @@ enum ItemIdentification
SAPLING, SAPLING,
COMPOST, COMPOST,
ORE, ORE,
BAR,
GEM, GEM,
POTION, POTION,
IMPLING_JAR, IMPLING_JAR,

View File

@@ -127,6 +127,17 @@ public interface ItemIdentificationConfig extends Config
return false; return false;
} }
@ConfigItem(
keyName = "showBars",
name = "Bars",
description = "Show identification on Bars",
section = identificationSection
)
default boolean showBars()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "showGems", keyName = "showGems",
name = "Gems", name = "Gems",

View File

@@ -101,6 +101,12 @@ class ItemIdentificationOverlay extends WidgetItemOverlay
return; return;
} }
break; break;
case BAR:
if (!config.showBars())
{
return;
}
break;
case GEM: case GEM:
if (!config.showGems()) if (!config.showGems())
{ {