Interface NPCHologramSkin
- All Superinterfaces:
BukkitEntitySkin
,DamageableSkin
,EquippableSkin
,HologramSkin
public interface NPCHologramSkin
extends HologramSkin, DamageableSkin, EquippableSkin, BukkitEntitySkin
Represents an "NPC"
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the skin signature that has been passed usingsetSkin(String, String)
.@Nullable String
Returns the skin texture that has been passed usingsetSkin(String, String)
.boolean
hasSkin()
Returns whether the skin has a skin (whether he looks like Alex or Steve)boolean
Returns whether the NPC is sneaking or not.void
Removes the current skin of the NPC and causes it by that to look like Alex/Stevevoid
Applies a skin to the NPCvoid
setSneaking
(boolean sneaking) Sets whether the NPC is sneaking or not.Methods inherited from interface de.marcely.bedwars.api.world.hologram.skin.BukkitEntitySkin
getBukkitEntity, updateBukkitMetadata
Methods inherited from interface de.marcely.bedwars.api.world.hologram.skin.DamageableSkin
attack, getDamageSound, getDeathSound, getHealth, setHealth
Methods inherited from interface de.marcely.bedwars.api.world.hologram.skin.EquippableSkin
getEquipment
Methods inherited from interface de.marcely.bedwars.api.world.hologram.HologramSkin
getEntityId, getEntityType, getHologram, getNMSEntity, getType
-
Method Details
-
setSkin
Applies a skin to the NPC- Parameters:
texture
- The base64 texture datasignature
- The base64 signature data
-
resetSkin
void resetSkin()Removes the current skin of the NPC and causes it by that to look like Alex/Steve -
hasSkin
boolean hasSkin()Returns whether the skin has a skin (whether he looks like Alex or Steve)- Returns:
true
when a skin has been applied usingsetSkin(String, String)
-
getSkinTexture
Returns the skin texture that has been passed usingsetSkin(String, String)
.Might be
null
when no skin has been set.- Returns:
- The skin texture in base64. Possibly
null
-
getSkinSignature
Returns the skin signature that has been passed usingsetSkin(String, String)
.Might be
null
when no skin has been set.- Returns:
- The skin signature in base64. Possibly
null
-
setSneaking
void setSneaking(boolean sneaking) Sets whether the NPC is sneaking or not.- Parameters:
sneaking
-true
when the NPC should be sneaking
-
isSneaking
boolean isSneaking()Returns whether the NPC is sneaking or not.- Returns:
true
when the NPC is sneaking
-