Class HologramInstance
java.lang.Object
com.gamersafer.minecraft.auth.paper.hologram.HologramInstance
Represents an actual in-world hologram.
-
Constructor Summary
ConstructorDescriptionHologramInstance
(@NonNull Hologram hologram, @NonNull List<com.comphenix.protocol.wrappers.Pair<com.comphenix.protocol.events.PacketContainer, com.comphenix.protocol.events.PacketContainer>> packetContainers, int[] ids) ConstructsHologramInstance
> -
Method Summary
Modifier and TypeMethodDescription@NonNull Hologram
hologram()
Returns the hologram object for this instance.int[]
ids()
Returns the list of entity ids that comprise this hologram.@NonNull List<com.comphenix.protocol.wrappers.Pair<com.comphenix.protocol.events.PacketContainer,
com.comphenix.protocol.events.PacketContainer>> Returns the list of packets that comprise this hologram.
-
Constructor Details
-
HologramInstance
public HologramInstance(@NonNull Hologram hologram, @NonNull List<com.comphenix.protocol.wrappers.Pair<com.comphenix.protocol.events.PacketContainer, com.comphenix.protocol.events.PacketContainer>> packetContainers, int[] ids) ConstructsHologramInstance
>- Parameters:
hologram
- the information for this instancepacketContainers
- the packets that comprise this hologramids
- the ids
-
-
Method Details
-
hologram
Returns the hologram object for this instance.- Returns:
- the hologram
-
packetContainers
public @NonNull List<com.comphenix.protocol.wrappers.Pair<com.comphenix.protocol.events.PacketContainer,com.comphenix.protocol.events.PacketContainer>> packetContainers()Returns the list of packets that comprise this hologram. The first value is the entity spawn packet, and the second value is the entity metadata packet.- Returns:
- the packets of this instance
-
ids
public int[] ids()Returns the list of entity ids that comprise this hologram.- Returns:
- the ids
-