Package | Description |
---|---|
eu.wauz.wauzcore.menu |
This package contains inventory classes, used as menu or for other custom interaction mechanics.
|
eu.wauz.wauzcore.mobs.citizens |
This package contains the mechanics for interactable citizens.
|
eu.wauz.wauzcore.system.instances |
This package contains classes, that are used for the instance / dungeon system.
|
Modifier and Type | Field and Description |
---|---|
private WauzCitizen |
CitizenInteractionMenu.citizen
The citizen that should be interacted with.
|
Modifier and Type | Method and Description |
---|---|
static void |
CitizenInteractionMenu.open(org.bukkit.entity.Player player,
WauzCitizen citizen)
Opens the menu for the given player.
|
Constructor and Description |
---|
CitizenInteractionMenu(WauzCitizen citizen)
Creates a new menu to interact with citizen npcs.
|
Modifier and Type | Field and Description |
---|---|
private WauzCitizen |
WauzInstanceCitizen.baseCitizen
The base citizen, to create instances from.
|
Modifier and Type | Field and Description |
---|---|
private static ChunkKeyMap<java.util.List<WauzCitizen>> |
WauzCitizen.chunkCitizensMap
A map with lists of citizens, indexed by chunk keys.
|
private static java.util.Map<WauzCitizen,net.jitse.npclib.api.NPC> |
WauzCitizenSpawner.citizenNpcMap
A map of npcs, indexed by citizen.
|
private static java.util.Map<net.jitse.npclib.api.NPC,WauzCitizen> |
WauzCitizenSpawner.npcCitizenMap
A map of citizens, indexed by npc.
|
private static java.util.Map<java.lang.String,WauzCitizen> |
WauzCitizen.unassignedCitizenMap
A map of citizens that aren't assigned to a world, indexed by name.
|
Modifier and Type | Method and Description |
---|---|
WauzCitizen |
WauzInstanceCitizen.getBaseCitizen() |
static WauzCitizen |
WauzCitizenSpawner.getCitizen(net.jitse.npclib.api.NPC npc)
Retrieves a registered citizen from the npc map.
|
static WauzCitizen |
WauzCitizen.getUnassignedCitizen(java.lang.String citizenName)
Gets a citizen that isn't assigned to a world, with the given name.
|
WauzCitizen |
WauzInstanceCitizen.spawn(org.bukkit.Location location)
Spawns the citizen exactly at the given location.
|
WauzCitizen |
WauzInstanceCitizen.spawn(org.bukkit.World world)
Spawns the citizen in the given world at the predefined coordinates.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<WauzCitizen> |
WauzCitizen.getCitizensNearPlayer(org.bukkit.entity.Player player,
int radius)
Finds all the citzens, near the given player.
|
Modifier and Type | Method and Description |
---|---|
static void |
WauzCitizen.addToChunkMap(WauzCitizen citizen,
org.bukkit.Chunk chunk)
Adds a citizen to the chunk map, so they can spawn in that chunk.
|
static void |
WauzCitizenSpawner.createNpc(WauzCitizen citizen)
Creates a citizen npc using the npc lib.
|
static void |
WauzCitizenSpawner.registerNpc(WauzCitizen citizen,
net.jitse.npclib.api.NPC npc)
Registers the given citizen npc, to retrieve it when needed.
|
static void |
WauzCitizen.removeFromChunkMap(WauzCitizen citizen,
org.bukkit.Chunk chunk)
Removes a citizen from the chunk map, so they can no longer spawn in that chunk.
|
static void |
WauzCitizenCache.showRandomMessage(WauzCitizen citizen,
java.util.List<org.bukkit.entity.Player> players)
Shows a random citizen message to the given players, if possible.
|
static void |
WauzCitizenSpawner.unregisterNpc(WauzCitizen citizen)
Unregisters the given citizen and destroy its npc object.
|
Constructor and Description |
---|
WauzCitizen(WauzCitizen citizen)
Constructs a citizen, that is an exact copy of another citizen.
|
WauzInstanceCitizen(WauzCitizen baseCitizen)
Creates a new citizen that can be instanced.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<WauzCitizen> |
WauzActiveInstance.activeCitizens
The citizens that have been spawned in the instance.
|