Add client-side ability cooldowns, sync, and GUI updates

This commit is contained in:
2025-12-07 22:54:45 +01:00
parent d4ad08a35a
commit c6cf504f67
11 changed files with 310 additions and 7 deletions
@@ -246,6 +246,14 @@ public class SkilltreeScreen extends Screen {
);
}));
}
if (!hoveredNode.getExclusiveWith().isEmpty()) {
tooltip.add(Component.literal("Mutually Exclusive with:")
.withStyle(ChatFormatting.RED));
for (ResourceLocation ex : hoveredNode.getExclusiveWith()) {
tooltip.add(Component.literal(" - " + ex.toString())
.withStyle(ChatFormatting.RED));
}
}
gfx.renderComponentTooltip(font, tooltip, mouseX, mouseY);
}