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
Modifier and TypeFieldDescriptionprivate Predicate<ChatCallback>
private String
Represents a collection that contains all ofPlayerPages
that this viewer has an instance in.private int
private ViewerStatus
private final UUID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addInstance
(String identifier) boolean
chat
(ChatCallback callback) void
close
(MenuPlayer player) Closes the menu for a specific player and removes the associatedviewer data
.dataOrDefault
(String identifier, Object defaultData) menu()
void
merge
(MenuViewer viewer) Merges the properties of another MenuViewer into this MenuViewer.int
page()
void
void
setChatHandler
(Predicate<ChatCallback> chatHandler) void
void
setPage
(int page) void
setStatus
(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