Class Dialog
java.lang.Object
com.fancyinnovations.fancydialogs.api.Dialog
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViewer(org.bukkit.entity.Player player) abstract voidclose(org.bukkit.entity.Player player) Closes the dialog for the specified player.getData()getId()booleanisOpenedFor(UUID uuid) Checks if the dialog is opened for a specific player by UUID.booleanisOpenedFor(org.bukkit.entity.Player player) Checks if the dialog is opened for a specific player.abstract voidopen(org.bukkit.entity.Player player) Opens the dialog for the specified player.voidremoveViewer(org.bukkit.entity.Player player)
-
Field Details
-
id
-
data
-
viewers
-
-
Constructor Details
-
Dialog
-
Dialog
public Dialog()
-
-
Method Details
-
open
public abstract void open(org.bukkit.entity.Player player) Opens the dialog for the specified player.- Parameters:
player- the player to open the dialog for
-
close
public abstract void close(org.bukkit.entity.Player player) Closes the dialog for the specified player.- Parameters:
player- the player to close the dialog for
-
getId
-
getData
-
getViewers
- Returns:
- a set of UUIDs of players who have this dialog opened
-
isOpenedFor
Checks if the dialog is opened for a specific player by UUID.- Parameters:
uuid- of the player to check- Returns:
- true if the dialog is opened for the player, false otherwise
-
isOpenedFor
public boolean isOpenedFor(org.bukkit.entity.Player player) Checks if the dialog is opened for a specific player.- Parameters:
player- the player to check- Returns:
- true if the dialog is opened for the player, false otherwise
-
addViewer
@Internal public void addViewer(org.bukkit.entity.Player player) -
removeViewer
@Internal public void removeViewer(org.bukkit.entity.Player player)
-