public interface Npc
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.Location |
getInitialSpawn()
Gets the location where this NPC was initially spawned at
|
MetadataMap |
getMeta()
Gets the NPCs attached metadata map.
|
void |
setClickCallback(Consumer<org.bukkit.entity.Player> clickCallback)
Applies a click callback listener to this NPC.
|
void |
setName(String name)
Sets the name of this NPC
|
void |
setShowNametag(boolean show)
Sets if this NPCs nametag should be shown
|
void |
setSkin(String skinPlayer)
Deprecated.
in favour of
setSkin(String, String) |
void |
setSkin(String textures,
String signature)
Sets the NPCs skin to the given textures
|
void setClickCallback(@Nullable Consumer<org.bukkit.entity.Player> clickCallback)
clickCallback - the click callback@Nonnull MetadataMap getMeta()
@Deprecated void setSkin(@Nonnull String skinPlayer)
setSkin(String, String)skinPlayer - the playervoid setSkin(@Nonnull String textures, @Nonnull String signature)
textures - the texturessignature - the signature of the textiresvoid setShowNametag(boolean show)
show - is the nametag should be shown@Nonnull org.bukkit.Location getInitialSpawn()
Copyright © 2022. All rights reserved.