Package net.tnemc.menu.core.viewer
Class MenuViewer
java.lang.Object
net.tnemc.menu.core.viewer.MenuViewer
MenuViewer
- Since:
- 1.5.0.0
- Author:
- creatorfromhell
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ChatCallback>private StringRepresents a collection that contains all ofPlayerPagesthat this viewer has an instance in.private intprivate ViewerStatusprivate final UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddInstance(String identifier) booleanchat(ChatCallback callback) voidclose(MenuPlayer player) Closes the menu for a specific player and removes the associatedviewer data.dataOrDefault(String identifier, Object defaultData) menu()voidmerge(MenuViewer viewer) Merges the properties of another MenuViewer into this MenuViewer.intpage()voidvoidsetChatHandler(Predicate<ChatCallback> chatHandler) voidvoidsetPage(int page) voidsetStatus(ViewerStatus status) status()uuid()
-
Field Details
-
data
-
uuid
-
page
private int page -
chatHandler
-
status
-
-
Constructor Details
-
MenuViewer
-
-
Method Details
-
addData
-
addInstance
-
removeInstances
public void removeInstances() -
findData
-
dataOrDefault
-
uuid
-
setMenu
-
page
public int page() -
setPage
public void setPage(int page) -
status
-
getChatHandler
-
setChatHandler