Interface HologramSkin

All Known Subinterfaces:
ArmorStandHologramSkin, DamageableSkin, EquippableSkin, HolographicHologramSkin, LivingEntityHologramSkin, NPCHologramSkin

public interface HologramSkin
Represents the skin of the hologram.

It contains stuff that only relate to the skin itself and other skin types may have their own class which inherit from this one.

  • Method Details

    • getType

      HologramSkinType getType()
      Returns the type of the skin.
      Returns:
      The skin type
    • getHologram

      HologramEntity getHologram()
      Returns the hologram to which this skin is bound to.
      Returns:
      The hologram
    • getEntityType

      EntityType getEntityType()
      Returns the EntityType that is being shown with this skin.

      Keep in mind that some types may have EntityTypes that change during their lifetime, such as HologramSkinType.LIVING.

      Returns:
      The EntityType that is being used for this skin
    • getEntityId

      int getEntityId()
      Returns the id of the entity that is being shown.

      Note that some variants, such as HologramSkinType.HOLOGRAM will always return 0 as they persist of multiple entities.

      Returns:
      The Entity.getEntityId() of the shown entity. May be 0 for some skin types
    • getNMSEntity

      @Nullable @Nullable Object getNMSEntity()
      Returns the NMS object that is being used internally for this skin.

      Note that some variants, such as HologramSkinType.HOLOGRAM will always return null as they persist of multiple entities.

      Returns:
      The internal NMS instance that is being used. May be null for some skin types