public class CitizensNpcFactory extends Object implements NpcFactory
NpcFactory using Citizens.EMPTY| Constructor and Description |
|---|
CitizensNpcFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource.
|
CitizensNpc |
spawnNpc(Location location,
String nametag,
String skinPlayer)
Spawns a NPC at the given location
|
CitizensNpc |
spawnNpc(Location location,
String nametag,
String skinTextures,
String skinSignature)
Spawns a NPC at the given location
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbindWith, closeAndReportException, closeSilently, isClosed@Nonnull public CitizensNpc spawnNpc(@Nonnull Location location, @Nonnull String nametag, @Nonnull String skinPlayer)
NpcFactoryspawnNpc in interface NpcFactorylocation - the location to spawn the npc atnametag - the nametag to give the npcskinPlayer - the username of the player whose skin the NPC should have@Nonnull public CitizensNpc spawnNpc(@Nonnull Location location, @Nonnull String nametag, @Nonnull String skinTextures, @Nonnull String skinSignature)
NpcFactoryspawnNpc in interface NpcFactorylocation - the location to spawn the npc atnametag - the nametag to give the npcskinTextures - the skin textures the NPC should haveskinSignature - the signature of the provided texturespublic void close()
Terminableclose in interface AutoCloseableclose in interface NpcFactoryclose in interface TerminableCopyright © 2020. All rights reserved.