-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent, Inpersistent(temporary) holograms #96
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, would be a helpful feature too!
/** | ||
* Returns a read-only view of the currently loaded persistent holograms. | ||
* | ||
* @return A read-only collection of holograms. | ||
*/ | ||
@Override | ||
public @NotNull | ||
@UnmodifiableView Collection<Hologram> getHolograms() { | ||
return this.holograms.values().stream().filter(hologram -> hologram.getData().isPersistent()).toList(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would personally name this getPersistentHolograms
and then revert getAllHolograms
to getHolograms
.
Just thought I'd prompt this thought that I just had - would |
probably, let me test and resolve it if thats the case |
This PR will resolve #50 |
fixed with 28f18f2 |
Awesome, I think the only thing left would be to look at those methods names mentioned above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
No description provided.