FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add SignalAwareVolume by MrHell228 · Pull Request #2594 · SpongePowered/SpongeAPI · GitHub

Add SignalAwareVolume - #2594

Open
MrHell228 wants to merge 5 commits into
SpongePowered:api-14from
MrHell228:api-14-signal-volume
Open

Add SignalAwareVolume#2594
MrHell228 wants to merge 5 commits into
SpongePowered:api-14from
MrHell228:api-14-signal-volume

Conversation

MrHell228 commented Apr 22, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

SpongeAPI | Sponge

Adds volume that allows getting redstone signal.

There are 4 different ways of getting this signal from a block and each of them has a set of similar methods.
So I think the most sane way would be to add registry with those SignalTypes.
The only exception is that analog signal doesn't support direction-based ouput so in impl passed direction is ignored.

public interface SignalAwareVolume extends PrimitiveGameVolume {

/**
* Returns whether the given position can conduct the signal.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is there any implicit direction being mentioned here? Does direction actually matter in this case?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL