|
RuneHive-Game
|
Sends a chatbox input prompt that accepts full text with spaces. More...
Public Member Functions | |
| boolean | encode (Player player) |
| SendInputMessage (String message, int length, Consumer< String > action) | |
| Public Member Functions inherited from com.runehive.net.packet.OutgoingPacket | |
| void | execute (Player player) |
| OutgoingPacket (int opcode, int capacity) | |
| OutgoingPacket (int opcode, PacketType type) | |
| OutgoingPacket (int opcode, PacketType type, int size) | |
Private Attributes | |
| final Consumer< String > | action |
| final int | inputLength |
| final String | inputMessage |
Additional Inherited Members | |
| Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket | |
| final PacketBuilder | builder |
Sends a chatbox input prompt that accepts full text with spaces.
This creates an input field in the chatbox where players can type messages. Based on 317 protocol inputDialogState system - packet triggers client-side text input mode that sends back typed string via packet 60.
Definition at line 20 of file SendInputMessage.java.
| com.runehive.net.packet.out.SendInputMessage.SendInputMessage | ( | String | message, |
| int | length, | ||
| Consumer< String > | action ) |
Definition at line 26 of file SendInputMessage.java.
References action, and com.runehive.net.packet.PacketType.VAR_BYTE.
| boolean com.runehive.net.packet.out.SendInputMessage.encode | ( | Player | player | ) |
Reimplemented from com.runehive.net.packet.OutgoingPacket.
Definition at line 34 of file SendInputMessage.java.
References action, com.runehive.net.packet.OutgoingPacket.builder, and inputMessage.
|
private |
Definition at line 22 of file SendInputMessage.java.
Referenced by encode(), and SendInputMessage().
|
private |
Definition at line 24 of file SendInputMessage.java.
|
private |
Definition at line 23 of file SendInputMessage.java.
Referenced by encode().