holoeasy icon indicating copy to clipboard operation
holoeasy copied to clipboard

Add option to use DisplayEntity as Hologram.

Open vLuckyyy opened this issue 5 months ago • 6 comments

how it works: https://www.youtube.com/watch?v=0mCQe7PjVxs Spigot has api for this: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Display.html

vLuckyyy avatar Feb 02 '24 18:02 vLuckyyy

This option is really recent, but could be usefull. I would still understand why he would keep using protocollib, you have more control like this.

Guarmanda avatar Feb 03 '24 10:02 Guarmanda

Interesting, we might think about implementing it, I've seen on the protocol and it's supported by 1.19. I wonder, however, what advantages it would have compared to a "simple" text line?

unldenis avatar Feb 03 '24 12:02 unldenis

This option is really recent, but could be usefull. I would still understand why he would keep using protocollib, you have more control like this.

Because by using packets, I don't register holograms on the server but only on the client, and thanks to the pool everything is asynchronous. It's a question of performance.

unldenis avatar Feb 03 '24 14:02 unldenis

Interesting, we might think about implementing it, I've seen on the protocol and it's supported by 1.19. I wonder, however, what advantages it would have compared to a "simple" text line?

The DisplayEntities has a new additional properties such as, hologram size, hologram background color, and position.

For example:

image

vLuckyyy avatar Feb 06 '24 09:02 vLuckyyy

Additional, im says, displayentites has billboard (position) property, example from spigot-api:

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Display.Billboard.html

image

vLuckyyy avatar Feb 06 '24 09:02 vLuckyyy

This option is really recent, but could be usefull. I would still understand why he would keep using protocollib, you have more control like this.

Because by using packets, I don't register holograms on the server but only on the client, and thanks to the pool everything is asynchronous. It's a question of performance.

Yes, i show spigot-api documentation, only for example.

vLuckyyy avatar Feb 06 '24 09:02 vLuckyyy