Class HologramInstance

java.lang.Object
com.gamersafer.minecraft.auth.paper.hologram.HologramInstance

public class HologramInstance extends Object
Represents an actual in-world hologram.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HologramInstance(@NonNull Hologram hologram, @NonNull List<com.comphenix.protocol.wrappers.Pair<com.comphenix.protocol.events.PacketContainer,com.comphenix.protocol.events.PacketContainer>> packetContainers, int[] ids)
    Constructs HologramInstance>
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Constructs HologramInstance>
      Parameters:
      hologram - the information for this instance
      packetContainers - the packets that comprise this hologram
      ids - the ids
  • Method Details

    • hologram

      public @NonNull Hologram 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