public class CitizenInteractionMenu extends java.lang.Object implements WauzInventory
WauzCitizen
,
WauzCitizenSpawner
Modifier and Type | Field and Description |
---|---|
private WauzCitizen |
citizen
The citizen that should be interacted with.
|
Modifier | Constructor and Description |
---|---|
private |
CitizenInteractionMenu(WauzCitizen citizen)
Creates a new menu to interact with citizen npcs.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInventoryId() |
static void |
open(org.bukkit.entity.Player player,
WauzCitizen citizen)
Opens the menu for the given player.
|
void |
selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
Checks if an interaction with the citizen was triggered by a player click.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyInventory, getGamemodes, openInstance
private WauzCitizen citizen
private CitizenInteractionMenu(WauzCitizen citizen)
citizen
- The citizen that should be interacted with.public java.lang.String getInventoryId()
getInventoryId
in interface WauzInventory
public static void open(org.bukkit.entity.Player player, WauzCitizen citizen)
player
- The player that should view the inventory.citizen
- The citizen that should be interacted with.WauzCitizenInteractions.createInteractionMenuBase(CitizenInteractionMenu, String)
,
WauzCitizenInteractions.getModeSelection()
,
WauzModeMenu.selectMenuPoint(InventoryClickEvent)
,
MenuUtils.setBorders(Inventory)
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.WauzCitizenInteractions.checkForValidInteractions(Player, ItemStack)