Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
FormBase.h
1
#pragma once
2
3
#include "mc/network/packet/ModalFormCancelReason.h"
4
#include "mc/world/actor/player/Player.h"
5
6
namespace
ll::form {
7
8
enum class
FormType { None = -1,
SimpleForm
,
ModalForm
,
CustomForm
};
9
10
using
FormCancelReason = std::optional<ModalFormCancelReason>;
11
12
class
Form
{
13
protected
:
14
virtual
~Form
() =
default
;
15
16
public
:
17
using
RawFormCallback = std::function<void(
Player
&, std::optional<std::string>, FormCancelReason)>;
18
19
LLAPI
static
bool
sendRawTo(
Player
& player, std::string
const
& formData, RawFormCallback callback = {});
20
21
LLAPI
static
bool
sendRawUpdate(
Player
& player, std::string
const
& formData, RawFormCallback callback = {});
22
};
23
24
}
// namespace ll::form
Player
Definition
Player.h:131
ll::form::CustomForm
Definition
CustomForm.h:11
ll::form::Form
Definition
FormBase.h:12
ll::form::ModalForm
Definition
ModalForm.h:16
ll::form::SimpleForm
Definition
SimpleForm.h:9
src
ll
api
form
FormBase.h
Generated on
for LeviLamina by
1.16.1