Package me.bimmr.bimmcore.npc.player
Class NPCPlayer
- java.lang.Object
-
- me.bimmr.bimmcore.npc.NPCBase
-
- me.bimmr.bimmcore.npc.player.NPCPlayer
-
public class NPCPlayer extends NPCBase
The type Npc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class me.bimmr.bimmcore.npc.NPCBase
NPCBase.ItemSlots, NPCBase.NPCType
-
-
Method Summary
Modifier and Type Method Description com.mojang.authlib.GameProfilegetGameProfile()Get the NPC's GameProfileintgetId()Gets id.com.mojang.authlib.properties.PropertygetSkin()Gets skin.java.lang.StringgetSkinSignature()java.lang.StringgetSkinTexture()voidhide(org.bukkit.entity.Player player)Hide the NPC from the playerbooleanisShown(org.bukkit.entity.Player player)voidrefresh()voidsetSkin(java.lang.String nameOrUUID)voidsetSkin(java.lang.String nameOrUUID, boolean refresh)Set the skinvoidsetSkin(java.lang.String texture, java.lang.String signature)voidsetSkin(java.lang.String texture, java.lang.String signature, boolean refresh)voidshow(org.bukkit.entity.Player player)Show the NPC to the player-
Methods inherited from class me.bimmr.bimmcore.npc.NPCBase
asMob, asPlayer, create, destroy, equip, getEquipment, getLocation, getName, getNPCClickEvent, getNPCType, isMob, isPlayer, setLocation, setName, setNPCClickEvent
-
-
-
-
Method Detail
-
getSkin
public com.mojang.authlib.properties.Property getSkin()
Gets skin.- Returns:
- The Property from the GameProfile
-
setSkin
public void setSkin(java.lang.String nameOrUUID)
-
getSkinTexture
public java.lang.String getSkinTexture()
-
getSkinSignature
public java.lang.String getSkinSignature()
-
setSkin
public void setSkin(java.lang.String nameOrUUID, boolean refresh)Set the skin- Parameters:
nameOrUUID- the name of uuidrefresh- to refresh the npc's skin right away
-
show
public void show(org.bukkit.entity.Player player)
Show the NPC to the player- Parameters:
player- The Player
-
refresh
public void refresh()
-
setSkin
public void setSkin(java.lang.String texture, java.lang.String signature)
-
setSkin
public void setSkin(java.lang.String texture, java.lang.String signature, boolean refresh)
-
hide
public void hide(org.bukkit.entity.Player player)
Hide the NPC from the player- Parameters:
player- The Player
-
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile()
Get the NPC's GameProfile- Returns:
- game profile
-
isShown
public boolean isShown(org.bukkit.entity.Player player)
-
-