Missing setSkin method on Example 3

This commit is contained in:
termxz
2019-08-07 08:47:21 -07:00
committed by GitHub
parent 6b08114366
commit c368f5ae25
+1
View File
@@ -38,6 +38,7 @@ public class NPCLibTest extends JavaPlugin {
MineSkinFetcher.fetchSkinFromIdAsync(skinId, skin -> { MineSkinFetcher.fetchSkinFromIdAsync(skinId, skin -> {
NPC npc = npclib.createNPC(Arrays.asList(ChatColor.WHITE + "Hi there (#3)"); NPC npc = npclib.createNPC(Arrays.asList(ChatColor.WHITE + "Hi there (#3)");
npc.setLocation(event.getPlayer().getLocation()); npc.setLocation(event.getPlayer().getLocation());
npc.setSkin(skin);
ids.add(npc.getId()); ids.add(npc.getId());
npc.create(); npc.create();
// The SkinFetcher fetches the skin async, you can only show the NPC to the player sync. // The SkinFetcher fetches the skin async, you can only show the NPC to the player sync.