NPCEntity

Constructors

Link copied to clipboard
public void NPCEntity(NPCsConfigFields npCsConfigFields, String locationString)
Spawns NPC based off of the values in the NPCsConfig config file.
public void NPCEntity(NPCsConfigFields npCsConfigFields, Location location)
Spawns NPCs for dungeon instancing.
public void NPCEntity(Location location)
For the travelling merchant
public void NPCEntity(Location location, String filename)
Transient summons retain the ordinary NPC spawn, timeout and removal owner.

Types

Link copied to clipboard
public class NPCEntityEvents implements Listener

Properties

Link copied to clipboard
Link copied to clipboard
public boolean isTalking
Link copied to clipboard
public String locationString
Link copied to clipboard
Link copied to clipboard
public Location spawnLocation
Link copied to clipboard
public final UUID uuid
Link copied to clipboard
public Villager villager

Functions

Link copied to clipboard
public void chunkLoad()
Sets the behavior for chunk loads
Link copied to clipboard
public void chunkUnload()
Sets the behavior for chunk unloads
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean getIsTalking()
Link copied to clipboard
public String getLocationString()
Link copied to clipboard
Link copied to clipboard
public Location getPersistentLocation()
Link copied to clipboard
public Location getQuestIndicatorLocation()
Anchor the marker to the same nameplate geometry rather than another body-height estimate.
Link copied to clipboard
public Location getSpawnLocation()
Link copied to clipboard
public UUID getUuid()
Link copied to clipboard
public Villager getVillager()
Link copied to clipboard
public String getWorldName()
Link copied to clipboard
public static boolean hasLoadedNPC(NPCsConfigFields npCsConfigFields, String locationString)
Link copied to clipboard
public static void initializeInstancedNPCs(String blueprintWorldName, World newWorld, int playerCount, DungeonInstance dungeonInstance)
Link copied to clipboard
public static void initializeNPCs(NPCsConfigFields npCsConfigFields)
Link copied to clipboard
public boolean isValid()
Link copied to clipboard
public void rebindPatrolConfig(NPCsConfigFields fields)
Link copied to clipboard
public boolean referencesWorld(World world)
Link copied to clipboard
public void refreshCustomModel()
Re-spawns the FMM display entity attached to this NPC.
Link copied to clipboard
public void remove(RemovalReason removalReason)
Link copied to clipboard
public void runScripts(ScriptHook hook, Event event, LivingEntity actor)
Link copied to clipboard
public void sayDialog(Player player)
Sends a dialog message to a player from the list of dialog messages the NPCEntity has
Link copied to clipboard
public void sayFarewell(Player player)
Sends a farewell message to a player from the list of farewell messages the NPCEntity has
Link copied to clipboard
public void sayGreeting(Player player)
Sends a greeting to a player from the list of greetings the NPCEntity has
Link copied to clipboard
public boolean setSpawnLocation()
Link copied to clipboard
public void setTimeout()
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
public static void startNameplates()
One task owns ordinary NPC nameplate viewers.
Link copied to clipboard
public void startTalkingCooldown()
Starts a cooldown for the talking state.
Link copied to clipboard
public void syncPatrolVisuals()
Keeps role entities attached to the moving villager without driving the villager by teleport.
Link copied to clipboard
public void updatePatrolPersistentLocation(Location location)
Re-keys the persistent handler without changing the authored route origin.
Link copied to clipboard
public void worldLoad(World world)
Link copied to clipboard
public void worldUnload()