public class ProtocolLibSignGUI extends AbstractSignGUIManager
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.util.UUID,ResultReceived<Player,java.lang.String[]>> |
listeners |
protected PacketAdapter |
packetListener |
protected ProtocolManager |
protocolManager |
protected java.util.Map<java.util.UUID,Vector> |
signLocations |
Constructor and Description |
---|
ProtocolLibSignGUI(Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
open(Player player,
java.lang.String[] paramdefaultText,
ResultReceived<Player,java.lang.String[]> response)
Opens a sign editor GUI for the specified player with text already in it.
|
open
protected ProtocolManager protocolManager
protected PacketAdapter packetListener
protected java.util.Map<java.util.UUID,ResultReceived<Player,java.lang.String[]>> listeners
protected java.util.Map<java.util.UUID,Vector> signLocations
public ProtocolLibSignGUI(Plugin plugin)
public void open(Player player, java.lang.String[] paramdefaultText, ResultReceived<Player,java.lang.String[]> response)
SignGUI
player
- The player to whom the editor will be displayed.paramdefaultText
- The text already in the editor GUI.response
- The object which will handle the completion of sign editing. The source is the player, the result is the input value from the sign GUI.public void destroy()
destroy
in class AbstractSignGUIManager