-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature request: API #3
Comments
I will do that in the comming days and keep you updated here. |
The most important API access points are hologram name (ie., the list) and visibility. |
To get a hologram by name: Hologram holo = FancyHolograms.getInstance().getHologramManager().getHologram("name"); To get a list of all holograms: Collection<Hologram> holograms = FancyHolograms.getInstance().getHologramManager().getAllHolograms(); To show/spawn to a player hologram.spawn(serverPlayer); // requires a ServerPlayer
HologramSpigotAdapter.fromHologram(hologram).spawn(player); // requires a normal Bukkit Player To hide/remove to a player hologram.remove(serverPlayer);
HologramSpigotAdapter.fromHologram(hologram).remove(player); // requires a normal Bukkit Player There is no information stored which players see which holograms, but I'll make a HologramSpawnEvent and a HologramRemoveEvent, then you can in theory easily track that. |
|
@SlimeDog do you need any more information or can this be closed? |
Has FancyHolograms API covered all the listed items? |
We're also waiting for more hologram features, like heads and items and blocks, but those are in addition to the |
Would it be possible to adjust the build settings to include the API as a compile, or to combine the API project and the plugin project together? The developer gradle repo is only allowing me to see the classes inside of the plugin branch; I can do The above image should have shown me a list of possible methods and fields inside the Hologram class, but as it cannot be found, it is blank. |
Yes I'll see what I can do (I'm not the best with maven repos and gradle), thank you for telling |
I just released the feature to have item & block holograms (https://github.com/FancyMcPlugins/FancyHolograms/releases/tag/v2.0.3) Do you need anything else? |
I will test it over the next week or so. Thanks. |
Command(s) to convert from HolographicDisplays and DecentHolograms would be a big plus. |
OK, I've done some testing (more to follow). In what follows, HD=HolographicDisplays, DH=DecentHolograms, FH=FancyHolograms.
|
A hologram should be a collection of (one or more) related display entities of various types. For me, a typical hologram consists of a block in the middle (vertically) of several text lines. |
I would like to add FancyHolograms support to pHD. It would be helpful if the issues noted above
could be addressed. Thanks for your consideration. |
Combined hologram elements in one single holograms is not planned for now. You would need to position multiple holograms by yourself. I'll think about bouncing & rotating item/block holograms. That could be pretty cool. You can center the hologram on block with the moveTo command ( |
Yep. Works great. Thanks.
That would be great.
OK. Will do. |
Please implement a public API so pHD can consider adding support.
The text was updated successfully, but these errors were encountered: