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.GameProfile
getGameProfile()
Get the NPC's GameProfileint
getId()
Gets id.com.mojang.authlib.properties.Property
getSkin()
Gets skin.java.lang.String
getSkinSignature()
java.lang.String
getSkinTexture()
void
hide(org.bukkit.entity.Player player)
Hide the NPC from the playerboolean
isShown(org.bukkit.entity.Player player)
void
refresh()
void
setSkin(java.lang.String nameOrUUID)
void
setSkin(java.lang.String nameOrUUID, boolean refresh)
Set the skinvoid
setSkin(java.lang.String texture, java.lang.String signature)
void
setSkin(java.lang.String texture, java.lang.String signature, boolean refresh)
void
show(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)
-
-