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 StringReturns the skin signature that has been passed usingsetSkin(String, String).@Nullable StringReturns the skin texture that has been passed usingsetSkin(String, String).booleanhasSkin()Returns whether the skin has a skin (whether he looks like Alex or Steve)booleanReturns whether the NPC is sneaking or not.voidRemoves the current skin of the NPC and causes it by that to look like Alex/StevevoidApplies a skin to the NPCvoidsetSneaking(boolean sneaking) Sets whether the NPC is sneaking or not.Methods inherited from interface de.marcely.bedwars.api.world.hologram.skin.BukkitEntitySkin
getBukkitEntity, updateBukkitMetadataMethods inherited from interface de.marcely.bedwars.api.world.hologram.skin.DamageableSkin
attack, getDamageSound, getDeathSound, getHealth, setHealthMethods inherited from interface de.marcely.bedwars.api.world.hologram.skin.EquippableSkin
getEquipmentMethods 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:
truewhen a skin has been applied usingsetSkin(String, String)
-
getSkinTexture
Returns the skin texture that has been passed usingsetSkin(String, String).Might be
nullwhen 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
nullwhen 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-truewhen the NPC should be sneaking
-
isSneaking
boolean isSneaking()Returns whether the NPC is sneaking or not.- Returns:
truewhen the NPC is sneaking
-