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

Add ForwardingViewer by MrHell228 · Pull Request #2526 · SpongePowered/SpongeAPI · GitHub

Add ForwardingViewer - #2526

Merged
Faithcaio merged 2 commits into
SpongePowered:api-12from
MrHell228:api-12-more-viewers
Jun 26, 2024
Merged

Add ForwardingViewer#2526
Faithcaio merged 2 commits into
SpongePowered:api-12from
MrHell228:api-12-more-viewers

Conversation

MrHell228 commented Jun 23, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

SpongeAPI | Sponge

ForwardingViewer is some kind of extension of kyori ForwardingAudience idea to sponge Viewer

ForwardingViewer:

  • of(viewersSupplier) is general method to support basically any custom viewers
  • of(Collection<Viewer>) and of(Viewer...) are easy shortcuts for static groups of viewers
  • allAround(world, center, radius) and allAround(entity, radius) are dynamic

Viewer:

  • Removed spawnParticles() that took radius
  • Added (x, y, z) variants for spawnParticles, playMusicDisc and stopMusicDisc, made their (position) variants defaulted
  • Updated some descriptions

Faithcaio merged commit 54f7a87 into SpongePowered:api-12 Jun 26, 2024
MrHell228 deleted the api-12-more-viewers branch June 28, 2024 21:27
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