Skip to content

Commit f297c05

Browse files
committed
feat: add ShulkerBox ID tooltip debug entry and bump version to 2.1.0-SNAPSHOT
1 parent be70445 commit f297c05

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ allprojects {
1010
}
1111

1212
group = "net.azisaba.azisabamod"
13-
version = "2.0.0"
13+
version = "2.1.0-SNAPSHOT"
1414

1515
repositories {
1616
// mavenLocal()

fabric-1.21/src/main/java/net/azisaba/azisabamod/fabric/debug/AzisabaDebugScreenEntries.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class AzisabaDebugScreenEntries {
2121
public static final Identifier ITEM_TOOLTIP_CUSTOM_MODEL_DATA = register("item_tooltip_custom_model_data", new DebugEntryNoop());
2222
public static final Identifier ITEM_TOOLTIP_SOULBOUND = register("item_tooltip_soulbound", new DebugEntryNoop());
2323
public static final Identifier ITEM_TOOLTIP_REPAIR_COST = register("item_tooltip_repair_cost", new DebugEntryNoop());
24+
public static final Identifier ITEM_TOOLTIP_SHULKER_ID = register("item_tooltip_shulker_id", new DebugEntryNoop());
2425
public static final Identifier INDICATOR_IN_PLAYER_LIST = register("indicator_in_player_list", new DebugEntryNoop());
2526

2627
private static @NonNull Identifier register(@NotNull String name, @NotNull DebugScreenEntry entry) {

fabric-1.21/src/main/java/net/azisaba/azisabamod/fabric/mixin/MixinItemStack.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public void addTooltip(Item.TooltipContext context, @Nullable Player player, Too
7575
list.add(Component.literal("RepairCost: " + repairCost).withStyle(ChatFormatting.DARK_GRAY));
7676
}
7777
}
78+
if (AzisabaDebugScreenEntries.isEnabled(AzisabaDebugScreenEntries.ITEM_TOOLTIP_SHULKER_ID) && tag.get("ShulkerId") instanceof StringTag(String value)) {
79+
list.add(Component.literal("ShulkerId: " + value).withStyle(ChatFormatting.DARK_GRAY));
80+
}
7881
cir.setReturnValue(list);
7982
}
8083
}

0 commit comments

Comments
 (0)