Skip to content

Network tool filter to a single cable network#456

Merged
TeamDman merged 11 commits intoTeamDman:1.19.2from
MasonD:network-tool-overlay-select
Feb 7, 2026
Merged

Network tool filter to a single cable network#456
TeamDman merged 11 commits intoTeamDman:1.19.2from
MasonD:network-tool-overlay-select

Conversation

@MasonD
Copy link

@MasonD MasonD commented Dec 23, 2025

See #450.

Hold the TOGGLE_NETWORK_TOOL_OVERLAY_KEY and right click a block to filter the network tool overlay to only the cable network containing that block. If there's no cable network for that block, it's just highlighted in red to indicate an error.

@TeamDman TeamDman added this to the v4.29.0 milestone Dec 23, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the ability to “focus” the Network Tool overlay on a single cable network by holding TOGGLE_NETWORK_TOOL_OVERLAY_KEY and right-clicking a block, with a red error highlight when no cable network exists at the chosen position.

Changes:

  • Extend ServerboundNetworkToolUsePacket to include the hand used and a modifier flag, and route handling to either inspection or overlay focus selection.
  • Introduce network-tool overlay modes (SHOW_ALL, SHOW_SELECTED_NETWORK, HIDDEN) and selected-network position storage in NetworkToolItem.
  • Render a red error overlay marker at the selected position when no network is found.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
platform/minecraft/src/main/java/ca/teamdman/sfm/common/net/ServerboundNetworkToolUsePacket.java Adds modifier-based behavior to select an overlay focus position vs. do inspection.
platform/minecraft/src/main/java/ca/teamdman/sfm/common/net/ServerboundNetworkToolToggleOverlayPacket.java Updates overlay toggle behavior to cycle a new mode enum and refresh cached positions.
platform/minecraft/src/main/java/ca/teamdman/sfm/common/item/NetworkToolItem.java Adds overlay mode/selection NBT + recomputation logic for overlay positions.
platform/minecraft/src/main/java/ca/teamdman/sfm/client/handler/ItemWorldRenderer.java Adds red error rendering when a selected focus position has no network.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TeamDman TeamDman merged commit 1eecc14 into TeamDman:1.19.2 Feb 7, 2026
TeamDman added a commit that referenced this pull request Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants