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 Summary
Modifier and TypeMethodDescriptionintReturns the id of the entity that is being shown.Returns theEntityTypethat is being shown with this skin.Returns the hologram to which this skin is bound to.@Nullable ObjectReturns the NMS object that is being used internally for this skin.getType()Returns the type of the skin.
-
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 theEntityTypethat 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.HOLOGRAMwill always return 0 as they persist of multiple entities.- Returns:
- The
Entity.getEntityId()of the shown entity. May be0for some skin types
-
getNMSEntity
Returns the NMS object that is being used internally for this skin.Note that some variants, such as
HologramSkinType.HOLOGRAMwill always returnnullas they persist of multiple entities.- Returns:
- The internal NMS instance that is being used. May be
nullfor some skin types
-