Holographic Displays

Holographic Displays

3M Downloads

Expose hologram visibility management

mart-r opened this issue ยท 13 comments

commented

Description

In previous versions of the plugin, it was possible to change the visibility of the holograms using the visibility manager.
This is no longer the case.

Would be nice to have this opportunity again.
Right now, the pHD project is having to jump through quite a few hoops to obtain the same functionality.

PS:
If this the functionality is not going to be added, then that's fine, but please do give a response if possible.

commented

What do you mean? The old API is still there. In the new API it's called VisiblitySettings, e.g. Hologram#getVisibilitySettings()

commented

I suppose I didn't describe the issue in enough detail.

The pHD project was designed to add functionality to existing HolographicDisplays holograms.
It was designed to manage the visibility of these holograms.
Previously, this was rather trivial. Now it is not.

While there may be visibility management for "API holograms", there is not for "internal holograms" which we're trying to manage.

commented

Ok, I will re-implement it.

commented

Added in 045f363

commented

Nice. Thank you.

commented

It would seem that this functionality was removed again in bf02837

Is there any plans of reintroducing it or can I consider it forever gone?

commented

Sorry, the internal API has changed. Now HD uses the same API other plugins use. You can get an instance of the API used by HD itself with HolographicDisplaysAPI.get(Bukkit.getPluginManager().getPlugin("HolographicDisplays")), or as before you can try accessing internal structures.

commented

Thanks.The API seems to have changed again at build 231 (in any event, it broke our usage, which was fine with build 226). Is it stable now?

commented

Thanks.

commented

The official API is stable, so accessing HD's holograms through that will stay. You can access the VisibilitySettings, but it might be updated by HD for example when refreshing the hologram or reloading the plugin. The internal code is subject to changes so I can't say it's stable.

commented

Thanks.

commented

Is there an (estimated) release date for HD 3.0.0?

commented

I'm back working on it hopefully, might release a last beta the next few days. v3 might be in a 1-3 weeks.