Class ItemHologram

java.lang.Object
com.maximde.hologramlib.hologram.Hologram<ItemHologram>
com.maximde.hologramlib.hologram.ItemHologram

public class ItemHologram extends Hologram<ItemHologram>
  • Field Details

    • displayType

      protected me.tofaa.entitylib.meta.display.ItemDisplayMeta.DisplayType displayType
    • onFire

      protected boolean onFire
    • item

      protected com.github.retrooper.packetevents.protocol.item.ItemStack item
  • Constructor Details

    • ItemHologram

      public ItemHologram(String id, RenderMode renderMode)
    • ItemHologram

      public ItemHologram(String id)
  • Method Details

    • applyMeta

      protected me.tofaa.entitylib.meta.EntityMeta applyMeta()
      Specified by:
      applyMeta in class Hologram<ItemHologram>
    • setPlayerHead

      public ItemHologram setPlayerHead(UUID uuid)
      Sets the item to a player head using the given UUID. The head will automatically glow and be scaled to fit a hologram display.
      Parameters:
      uuid - The UUID of the player whose skin to use.
      Returns:
      this (for chaining)
    • setBase64Head

      public ItemHologram setBase64Head(String base64Texture)
      Sets the item to a player head using a raw base64 texture string. This is useful for custom heads from HeadDatabase or similar plugins.
      Parameters:
      base64Texture - The base64 encoded texture value (the "Value" field from textures property).
      Returns:
      this (for chaining)
    • setUrlHead

      public ItemHologram setUrlHead(String skinUrl)
      Sets the item to a player head using a skin URL. The URL should point to a Minecraft skin texture.
      Parameters:
      skinUrl - The URL of the skin texture (e.g., from textures.minecraft.net).
      Returns:
      this (for chaining)
    • setHeadDatabaseHead

      public ItemHologram setHeadDatabaseHead(String headId)
      Sets the item to a player head using a HeadDatabase head ID. Requires HeadDatabase plugin to be installed and enabled.
      Parameters:
      headId - The HeadDatabase head ID (e.g., "7129").
      Returns:
      this (for chaining)
    • copy

      protected ItemHologram copy()
      Specified by:
      copy in class Hologram<ItemHologram>
    • copy

      protected ItemHologram copy(String id)
      Specified by:
      copy in class Hologram<ItemHologram>