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 TypeMethodDescriptionint
Returns the id of the entity that is being shown.Returns theEntityType
that is being shown with this skin.Returns the hologram to which this skin is bound to.@Nullable Object
Returns 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 theEntityType
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 be0
for some skin types
-
getNMSEntity
Returns the NMS object that is being used internally for this skin.Note that some variants, such as
HologramSkinType.HOLOGRAM
will always returnnull
as they persist of multiple entities.- Returns:
- The internal NMS instance that is being used. May be
null
for some skin types
-