item identification: Add sacks (#9372)
This commit is contained in:
@@ -48,6 +48,12 @@ enum ItemIdentification
|
|||||||
POISON_IVY_SEED(Type.SEED, "Ivy", "I", ItemID.POISON_IVY_SEED),
|
POISON_IVY_SEED(Type.SEED, "Ivy", "I", ItemID.POISON_IVY_SEED),
|
||||||
WHITEBERRY_SEED(Type.SEED, "White", "W", ItemID.WHITEBERRY_SEED),
|
WHITEBERRY_SEED(Type.SEED, "White", "W", ItemID.WHITEBERRY_SEED),
|
||||||
|
|
||||||
|
//Sacks
|
||||||
|
SACK(Type.SACK, "Empty", "EMP", ItemID.EMPTY_SACK),
|
||||||
|
CABBAGE_SACK(Type.SACK, "Cabbage", "CAB", ItemID.CABBAGES1, ItemID.CABBAGES2, ItemID.CABBAGES3, ItemID.CABBAGES4, ItemID.CABBAGES5, ItemID.CABBAGES6, ItemID.CABBAGES7, ItemID.CABBAGES8, ItemID.CABBAGES9, ItemID.CABBAGES10),
|
||||||
|
ONION_SACK(Type.SACK, "Onion", "ONI", ItemID.ONIONS1, ItemID.ONIONS2, ItemID.ONIONS3, ItemID.ONIONS4, ItemID.ONIONS5, ItemID.ONIONS6, ItemID.ONIONS7, ItemID.ONIONS8, ItemID.ONIONS9, ItemID.ONIONS10),
|
||||||
|
POTATO_SACK(Type.SACK, "Potato", "POT", ItemID.POTATOES1, ItemID.POTATOES2, ItemID.POTATOES3, ItemID.POTATOES4, ItemID.POTATOES5, ItemID.POTATOES6, ItemID.POTATOES7, ItemID.POTATOES8, ItemID.POTATOES9, ItemID.POTATOES10),
|
||||||
|
|
||||||
//Herbs
|
//Herbs
|
||||||
GUAM(Type.HERB, "Guam", "G", ItemID.GUAM_LEAF, ItemID.GRIMY_GUAM_LEAF),
|
GUAM(Type.HERB, "Guam", "G", ItemID.GUAM_LEAF, ItemID.GRIMY_GUAM_LEAF),
|
||||||
MARRENTILL(Type.HERB, "Marren", "M", ItemID.MARRENTILL, ItemID.GRIMY_MARRENTILL),
|
MARRENTILL(Type.HERB, "Marren", "M", ItemID.MARRENTILL, ItemID.GRIMY_MARRENTILL),
|
||||||
@@ -305,6 +311,7 @@ enum ItemIdentification
|
|||||||
enum Type
|
enum Type
|
||||||
{
|
{
|
||||||
SEED,
|
SEED,
|
||||||
|
SACK,
|
||||||
HERB,
|
HERB,
|
||||||
SAPLING,
|
SAPLING,
|
||||||
ORE,
|
ORE,
|
||||||
|
|||||||
@@ -73,6 +73,16 @@ public interface ItemIdentificationConfig extends Config
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showSacks",
|
||||||
|
name = "Sacks",
|
||||||
|
description = "Show identification on Sacks"
|
||||||
|
)
|
||||||
|
default boolean showSacks()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "showHerbs",
|
keyName = "showHerbs",
|
||||||
name = "Herbs",
|
name = "Herbs",
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ class ItemIdentificationOverlay extends WidgetItemOverlay
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SACK:
|
||||||
|
if (!config.showSacks())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case HERB:
|
case HERB:
|
||||||
if (!config.showHerbs())
|
if (!config.showHerbs())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user