Clarified the README.
This commit is contained in:
@@ -16,17 +16,18 @@ Current versions supported: 1.8 - 1.12.
|
||||
```
|
||||
|
||||
```Java
|
||||
// If you want to spawn an NPC, you can generate it like so:
|
||||
NPC npc = lib.createNPC(skin, autoHideDistance, lines);
|
||||
|
||||
// Then you need to generate the packets for the NPC like so:
|
||||
// Creating an NPC.
|
||||
NPC npc = lib.createNPC(skin, lines);
|
||||
|
||||
// The generate the packets for the NPC.
|
||||
npc.create(location);
|
||||
|
||||
// Then, finally, you can show/hide it to/from players like so:
|
||||
// Then *finally* you can show/hide it to/from players.
|
||||
npc.show(player);
|
||||
npc.hide(player);
|
||||
|
||||
// If you don't use the NPC anymore, destroy it accordingly:
|
||||
// If you don't use the NPC anymore, destroy the NPC accordingly.
|
||||
npc.destroy();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user