public class FormChannel extends Object implements PluginMessageChannel
PluginMessageChannel.Identity, PluginMessageChannel.Result| Constructor and Description |
|---|
FormChannel() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
callResponseConsumer(byte[] data) |
byte[] |
createFormData(org.geysermc.cumulus.form.Form form) |
protected short |
getFormId(byte[] data) |
String |
getIdentifier() |
protected short |
getNextFormId() |
PluginMessageChannel.Result |
handleProxyCall(byte[] data,
UUID sourceUuid,
String sourceUsername,
PluginMessageChannel.Identity sourceIdentity) |
PluginMessageChannel.Result |
handleServerCall(byte[] data,
UUID playerUuid,
String playerUsername) |
boolean |
sendForm(UUID player,
org.geysermc.cumulus.form.Form form) |
public String getIdentifier()
getIdentifier in interface PluginMessageChannelpublic PluginMessageChannel.Result handleProxyCall(byte[] data, UUID sourceUuid, String sourceUsername, PluginMessageChannel.Identity sourceIdentity)
handleProxyCall in interface PluginMessageChannelpublic PluginMessageChannel.Result handleServerCall(byte[] data, UUID playerUuid, String playerUsername)
handleServerCall in interface PluginMessageChannelpublic boolean sendForm(UUID player, org.geysermc.cumulus.form.Form form)
public byte[] createFormData(org.geysermc.cumulus.form.Form form)
protected boolean callResponseConsumer(byte[] data)
protected short getFormId(byte[] data)
protected short getNextFormId()