Botcraft
1.21.4
Loading...
Searching...
No Matches
Enums.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// To make gcc happy about std::ostream
4
#include <iosfwd>
5
6
namespace
Botcraft
7
{
8
enum class
ChatMode
9
{
10
Enabled
,
11
CommandsOnly
,
12
Hidden
13
};
14
15
#if PROTOCOL_VERSION < 719
/* < 1.16 */
16
enum class
Dimension
17
{
18
None
= -2,
19
Nether,
20
Overworld,
21
End
22
};
23
#endif
24
25
enum class
Difficulty
26
{
27
None
= -1,
28
Peaceful
,
29
Easy
,
30
Normal
,
31
Hard
32
};
33
34
enum class
SoundSource
35
{
36
Null
= -1,
37
Master
= 0,
38
Music
,
39
Records
,
40
Weather
,
41
Blocks
,
42
Hostile
,
43
Neutral
,
44
Players
,
45
Ambient
,
46
Voice
47
};
48
49
enum class
GameType
50
{
51
None
= -1,
52
Survival
,
53
Creative
,
54
Adventure
,
55
Spectator
56
};
57
58
#if PROTOCOL_VERSION < 393
/* < 1.13 */
59
enum class
Enchantment
60
{
61
Protection
= 0,
62
FireProtection
= 1,
63
FeatherFalling
= 2,
64
BlastProtection
= 3,
65
ProjectileProtection
= 4,
66
Respiration
= 5,
67
AquaAffinity
= 6,
68
Thorns
= 7,
69
DepthStrider
= 8,
70
FrostWalker
= 9,
71
BindingCurse
= 10,
72
Sharpness
= 16,
73
Smite
= 17,
74
BaneOfArthropods
= 18,
75
Knockback
= 19,
76
FireAspect
= 20,
77
Looting
= 21,
78
SweepingEdge
= 22,
79
Efficiency
= 32,
80
SilkTouch
= 33,
81
Unbreaking
= 34,
82
Fortune
= 35,
83
Power
= 48,
84
Punch
= 49,
85
Flame
= 50,
86
Infinity
= 51,
87
LuckOfTheSea
= 61,
88
Lure
= 62,
89
Mending
= 70,
90
VanishingCurse
= 71,
91
};
92
#else
93
enum class
Enchantment
94
{
95
None
= -1,
96
Protection
,
97
FireProtection
,
98
FeatherFalling
,
99
BlastProtection
,
100
ProjectileProtection
,
101
Respiration
,
102
AquaAffinity
,
103
Thorns
,
104
DepthStrider
,
105
FrostWalker
,
106
BindingCurse
,
107
#if PROTOCOL_VERSION > 578
/* > 1.15.2 */
108
SoulSpeed
,
109
#endif
110
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
111
SwiftSneak
,
112
#endif
113
Sharpness
,
114
Smite
,
115
BaneOfArthropods
,
116
Knockback
,
117
FireAspect
,
118
Looting
,
119
SweepingEdge
,
120
Efficiency
,
121
SilkTouch
,
122
Unbreaking
,
123
Fortune
,
124
Power
,
125
Punch
,
126
Flame
,
127
Infinity
,
128
LuckOfTheSea
,
129
Lure
,
130
Loyalty
,
131
Impaling
,
132
Riptide
,
133
Channeling
,
134
#if PROTOCOL_VERSION > 404
/* > 1.13.2 */
135
Multishot
,
136
QuickCharge
,
137
Piercing
,
138
#endif
139
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
140
Density
,
141
Breach
,
142
WindBurst
,
143
#endif
144
Mending
,
145
VanishingCurse
,
146
};
147
#endif
148
149
enum class
Hand
150
{
151
Right
= 0,
152
Main
= 0,
153
Left
= 1,
154
Off
= 1
155
};
156
std::ostream&
operator<<
(std::ostream& os,
const
Hand
v);
157
158
enum class
TintType
:
char
159
{
160
None
,
161
Water
,
162
Redstone
,
163
Grass
,
164
Leaves
165
};
166
167
enum class
Orientation
168
{
169
None
= -1,
170
/// @brief y = -1
171
Bottom
= 0,
172
/// @brief z = -1
173
North
,
174
/// @brief x = -1
175
West
,
176
/// @brief x = 1
177
East
,
178
/// @brief z = 1
179
South
,
180
/// @brief y = 1
181
Top
182
};
183
184
enum class
PlayerDiggingStatus
185
{
186
StartDigging
= 0,
187
CancelDigging
,
188
FinishDigging
,
189
DropItemStack
,
190
DropItem
,
191
ShootArrow
,
192
FinishEating
=
ShootArrow
,
193
SwapItemHand
194
};
195
196
enum class
Direction
197
{
198
/// @brief -Y
199
Down
= 0,
200
/// @brief +Y
201
Up
,
202
/// @brief -Z
203
North
,
204
/// @brief +Z
205
South
,
206
/// @brief -X
207
West
,
208
/// @brief +X
209
East
210
};
211
typedef
Direction
PlayerDiggingFace
;
212
std::ostream&
operator<<
(std::ostream& os,
const
Direction
v);
213
214
// Types are detailed in registries, see https://wiki.vg/Inventory
215
216
enum class
InventoryType
217
{
218
PlayerInventory
= -2,
219
Default
= -1,
220
Generic9x1
= 0,
221
Generic9x2
,
222
Generic9x3
,
223
Generic9x4
,
224
Generic9x5
,
225
Generic9x6
,
226
Generic3x3
,
227
#if PROTOCOL_VERSION > 764
/* > 1.20.2 */
228
Crafter3x3
,
229
#endif
230
Anvil
,
231
Beacon
,
232
BlastFurnace
,
233
BrewingStand
,
234
Crafting
,
235
Enchantment
,
236
Furnace
,
237
Grindstone
,
238
Hopper
,
239
Lectern
,
240
Loom
,
241
Merchant
,
242
ShulkerBox
,
243
Smithing
,
244
Smoker
,
245
CartographyTable
,
246
StoneCutter
247
};
248
249
enum class
Pose
250
{
251
Standing
,
252
FallFlying
,
253
Sleeping
,
254
Swimming
,
255
SpinAttack
,
256
Crouching
,
257
LongJumping
,
258
Dying
,
259
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
260
Croaking
,
261
UsingTongue
,
262
Sitting
,
263
Roaring
,
264
Sniffing
,
265
Emerging
,
266
Digging
,
267
#endif
268
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
269
Sliding
,
270
Shooting
,
271
Inhaling
,
272
#endif
273
};
274
275
enum class
EquipmentSlot
276
{
277
MainHand
= 0,
278
OffHand
,
279
Boots
,
280
Leggings
,
281
ChestPlate
,
282
Helmet
,
283
#if PROTOCOL_VERSION > 766
/* > 1.20.6 */
284
BodyAnimalArmor
,
285
#endif
286
};
287
288
enum class
ToolMaterial
:
char
289
{
290
None
= 0,
291
Wood
,
292
Gold
,
293
Stone
,
294
Iron
,
295
Diamond
,
296
#if PROTOCOL_VERSION > 578
/* > 1.15.2 */
297
Netherite
,
298
#endif
299
NUM_TOOL_MATERIAL
300
};
301
302
enum class
ToolType
:
char
303
{
304
None
= 0,
305
Axe
,
306
Hoe
,
307
Pickaxe
,
308
Shears
,
309
Shovel
,
310
Sword
,
311
NUM_TOOL_TYPE
312
};
313
314
enum class
EntityEffectType
315
{
316
#if PROTOCOL_VERSION < 764
/* < 1.20.2 */
317
None
= 0,
318
#else
319
None
= -1,
320
#endif
321
Speed
,
322
Slowness
,
323
Haste
,
324
MiningFatigue
,
325
Strength
,
326
InstantHealth
,
327
InstantDamage
,
328
JumpBoost
,
329
Nausea
,
330
Regeneration
,
331
Resistance
,
332
FireResistance
,
333
WaterBreathing
,
334
Invisibility
,
335
Blindness
,
336
NightVision
,
337
Hunger
,
338
Weakness
,
339
Poison
,
340
Wither
,
341
HealthBoost
,
342
Absorption
,
343
Saturation
,
344
Glowing
,
345
Levitation
,
346
Luck
,
347
Unluck
,
348
#if PROTOCOL_VERSION > 340
/* > 1.12.2 */
349
SlowFalling
,
350
ConduitPower
,
351
DolphinsGrace
,
352
#endif
353
#if PROTOCOL_VERSION > 404
/* > 1.13.2 */
354
BadOmen
,
355
HeroOfTheVillage
,
356
#endif
357
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
358
Darkness
,
359
#endif
360
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
361
TrialOmen
,
362
RaidOmen
,
363
WindCharged
,
364
Weaving
,
365
Oozing
,
366
Infested
,
367
#endif
368
};
369
370
enum class
PlayerCommandAction
371
{
372
PressShiftKey
,
373
ReleaseShifKey
,
374
StopSleeping
,
375
StartSprinting
,
376
StopSprinting
,
377
StartRidingJump
,
378
StopRidingJump
,
379
OpenInventory
,
380
StartFallFlying
381
};
382
}
// Botcraft
Botcraft
Definition
BaseNode.hpp:6
Botcraft::InventoryType
InventoryType
Definition
Enums.hpp:217
Botcraft::InventoryType::ShulkerBox
@ ShulkerBox
Botcraft::InventoryType::BrewingStand
@ BrewingStand
Botcraft::InventoryType::Lectern
@ Lectern
Botcraft::InventoryType::Grindstone
@ Grindstone
Botcraft::InventoryType::Beacon
@ Beacon
Botcraft::InventoryType::StoneCutter
@ StoneCutter
Botcraft::InventoryType::Generic9x6
@ Generic9x6
Botcraft::InventoryType::Generic9x1
@ Generic9x1
Botcraft::InventoryType::Generic9x3
@ Generic9x3
Botcraft::InventoryType::Furnace
@ Furnace
Botcraft::InventoryType::Anvil
@ Anvil
Botcraft::InventoryType::Default
@ Default
Botcraft::InventoryType::Smoker
@ Smoker
Botcraft::InventoryType::Merchant
@ Merchant
Botcraft::InventoryType::Crafting
@ Crafting
Botcraft::InventoryType::Smithing
@ Smithing
Botcraft::InventoryType::Generic9x5
@ Generic9x5
Botcraft::InventoryType::Loom
@ Loom
Botcraft::InventoryType::Hopper
@ Hopper
Botcraft::InventoryType::Generic9x2
@ Generic9x2
Botcraft::InventoryType::CartographyTable
@ CartographyTable
Botcraft::InventoryType::BlastFurnace
@ BlastFurnace
Botcraft::InventoryType::Generic3x3
@ Generic3x3
Botcraft::InventoryType::Generic9x4
@ Generic9x4
Botcraft::InventoryType::Crafter3x3
@ Crafter3x3
Botcraft::InventoryType::PlayerInventory
@ PlayerInventory
Botcraft::GameType
GameType
Definition
Enums.hpp:50
Botcraft::GameType::Creative
@ Creative
Botcraft::GameType::Spectator
@ Spectator
Botcraft::GameType::Survival
@ Survival
Botcraft::GameType::Adventure
@ Adventure
Botcraft::Difficulty
Difficulty
Definition
Enums.hpp:26
Botcraft::Difficulty::Hard
@ Hard
Botcraft::Difficulty::Easy
@ Easy
Botcraft::Difficulty::Normal
@ Normal
Botcraft::Difficulty::Peaceful
@ Peaceful
Botcraft::Pose
Pose
Definition
Enums.hpp:250
Botcraft::Pose::LongJumping
@ LongJumping
Botcraft::Pose::Dying
@ Dying
Botcraft::Pose::Sniffing
@ Sniffing
Botcraft::Pose::Emerging
@ Emerging
Botcraft::Pose::Digging
@ Digging
Botcraft::Pose::Standing
@ Standing
Botcraft::Pose::Crouching
@ Crouching
Botcraft::Pose::Sleeping
@ Sleeping
Botcraft::Pose::Sitting
@ Sitting
Botcraft::Pose::Roaring
@ Roaring
Botcraft::Pose::Shooting
@ Shooting
Botcraft::Pose::Sliding
@ Sliding
Botcraft::Pose::Croaking
@ Croaking
Botcraft::Pose::Inhaling
@ Inhaling
Botcraft::Pose::UsingTongue
@ UsingTongue
Botcraft::Pose::SpinAttack
@ SpinAttack
Botcraft::ToolMaterial
ToolMaterial
Definition
Enums.hpp:289
Botcraft::ToolMaterial::Stone
@ Stone
Botcraft::ToolMaterial::Wood
@ Wood
Botcraft::ToolMaterial::Netherite
@ Netherite
Botcraft::ToolMaterial::Diamond
@ Diamond
Botcraft::ToolMaterial::Gold
@ Gold
Botcraft::ToolMaterial::NUM_TOOL_MATERIAL
@ NUM_TOOL_MATERIAL
Botcraft::ToolMaterial::Iron
@ Iron
Botcraft::PlayerCommandAction
PlayerCommandAction
Definition
Enums.hpp:371
Botcraft::PlayerCommandAction::PressShiftKey
@ PressShiftKey
Botcraft::PlayerCommandAction::StartFallFlying
@ StartFallFlying
Botcraft::PlayerCommandAction::StopSprinting
@ StopSprinting
Botcraft::PlayerCommandAction::ReleaseShifKey
@ ReleaseShifKey
Botcraft::PlayerCommandAction::StopRidingJump
@ StopRidingJump
Botcraft::PlayerCommandAction::StartSprinting
@ StartSprinting
Botcraft::PlayerCommandAction::StartRidingJump
@ StartRidingJump
Botcraft::PlayerCommandAction::StopSleeping
@ StopSleeping
Botcraft::PlayerCommandAction::OpenInventory
@ OpenInventory
Botcraft::PlayerDiggingStatus
PlayerDiggingStatus
Definition
Enums.hpp:185
Botcraft::PlayerDiggingStatus::StartDigging
@ StartDigging
Botcraft::PlayerDiggingStatus::DropItem
@ DropItem
Botcraft::PlayerDiggingStatus::FinishDigging
@ FinishDigging
Botcraft::PlayerDiggingStatus::FinishEating
@ FinishEating
Botcraft::PlayerDiggingStatus::CancelDigging
@ CancelDigging
Botcraft::PlayerDiggingStatus::SwapItemHand
@ SwapItemHand
Botcraft::PlayerDiggingStatus::DropItemStack
@ DropItemStack
Botcraft::PlayerDiggingStatus::ShootArrow
@ ShootArrow
Botcraft::SoundSource
SoundSource
Definition
Enums.hpp:35
Botcraft::SoundSource::Blocks
@ Blocks
Botcraft::SoundSource::Weather
@ Weather
Botcraft::SoundSource::Music
@ Music
Botcraft::SoundSource::Players
@ Players
Botcraft::SoundSource::Hostile
@ Hostile
Botcraft::SoundSource::Null
@ Null
Botcraft::SoundSource::Voice
@ Voice
Botcraft::SoundSource::Records
@ Records
Botcraft::SoundSource::Neutral
@ Neutral
Botcraft::SoundSource::Ambient
@ Ambient
Botcraft::SoundSource::Master
@ Master
Botcraft::Enchantment
Enchantment
Definition
Enums.hpp:94
Botcraft::Enchantment::Multishot
@ Multishot
Botcraft::Enchantment::Channeling
@ Channeling
Botcraft::Enchantment::Fortune
@ Fortune
Botcraft::Enchantment::SilkTouch
@ SilkTouch
Botcraft::Enchantment::FeatherFalling
@ FeatherFalling
Botcraft::Enchantment::Smite
@ Smite
Botcraft::Enchantment::WindBurst
@ WindBurst
Botcraft::Enchantment::Punch
@ Punch
Botcraft::Enchantment::Impaling
@ Impaling
Botcraft::Enchantment::DepthStrider
@ DepthStrider
Botcraft::Enchantment::QuickCharge
@ QuickCharge
Botcraft::Enchantment::Flame
@ Flame
Botcraft::Enchantment::FireAspect
@ FireAspect
Botcraft::Enchantment::AquaAffinity
@ AquaAffinity
Botcraft::Enchantment::Thorns
@ Thorns
Botcraft::Enchantment::BaneOfArthropods
@ BaneOfArthropods
Botcraft::Enchantment::Knockback
@ Knockback
Botcraft::Enchantment::Riptide
@ Riptide
Botcraft::Enchantment::Piercing
@ Piercing
Botcraft::Enchantment::VanishingCurse
@ VanishingCurse
Botcraft::Enchantment::Loyalty
@ Loyalty
Botcraft::Enchantment::Density
@ Density
Botcraft::Enchantment::Protection
@ Protection
Botcraft::Enchantment::Lure
@ Lure
Botcraft::Enchantment::SwiftSneak
@ SwiftSneak
Botcraft::Enchantment::LuckOfTheSea
@ LuckOfTheSea
Botcraft::Enchantment::Mending
@ Mending
Botcraft::Enchantment::Efficiency
@ Efficiency
Botcraft::Enchantment::Unbreaking
@ Unbreaking
Botcraft::Enchantment::BlastProtection
@ BlastProtection
Botcraft::Enchantment::BindingCurse
@ BindingCurse
Botcraft::Enchantment::FireProtection
@ FireProtection
Botcraft::Enchantment::Sharpness
@ Sharpness
Botcraft::Enchantment::Breach
@ Breach
Botcraft::Enchantment::FrostWalker
@ FrostWalker
Botcraft::Enchantment::Looting
@ Looting
Botcraft::Enchantment::Power
@ Power
Botcraft::Enchantment::SweepingEdge
@ SweepingEdge
Botcraft::Enchantment::Infinity
@ Infinity
Botcraft::Enchantment::Respiration
@ Respiration
Botcraft::Enchantment::SoulSpeed
@ SoulSpeed
Botcraft::Enchantment::ProjectileProtection
@ ProjectileProtection
Botcraft::Orientation
Orientation
Definition
Enums.hpp:168
Botcraft::Orientation::South
@ South
z = 1
Botcraft::Orientation::Bottom
@ Bottom
y = -1
Botcraft::Orientation::North
@ North
z = -1
Botcraft::Orientation::Top
@ Top
y = 1
Botcraft::Orientation::East
@ East
x = 1
Botcraft::Orientation::West
@ West
x = -1
Botcraft::ToolType
ToolType
Definition
Enums.hpp:303
Botcraft::ToolType::NUM_TOOL_TYPE
@ NUM_TOOL_TYPE
Botcraft::ToolType::Pickaxe
@ Pickaxe
Botcraft::ToolType::Hoe
@ Hoe
Botcraft::ToolType::Sword
@ Sword
Botcraft::ToolType::Shovel
@ Shovel
Botcraft::ToolType::Axe
@ Axe
Botcraft::ToolType::Shears
@ Shears
Botcraft::PlayerDiggingFace
Direction PlayerDiggingFace
Definition
Enums.hpp:211
Botcraft::EquipmentSlot
EquipmentSlot
Definition
Enums.hpp:276
Botcraft::EquipmentSlot::MainHand
@ MainHand
Botcraft::EquipmentSlot::ChestPlate
@ ChestPlate
Botcraft::EquipmentSlot::OffHand
@ OffHand
Botcraft::EquipmentSlot::Helmet
@ Helmet
Botcraft::EquipmentSlot::Boots
@ Boots
Botcraft::EquipmentSlot::BodyAnimalArmor
@ BodyAnimalArmor
Botcraft::EquipmentSlot::Leggings
@ Leggings
Botcraft::Direction
Direction
Definition
Enums.hpp:197
Botcraft::Direction::Down
@ Down
-Y
Botcraft::Direction::Up
@ Up
+Y
Botcraft::EntityEffectType
EntityEffectType
Definition
Enums.hpp:315
Botcraft::EntityEffectType::BadOmen
@ BadOmen
Botcraft::EntityEffectType::TrialOmen
@ TrialOmen
Botcraft::EntityEffectType::DolphinsGrace
@ DolphinsGrace
Botcraft::EntityEffectType::NightVision
@ NightVision
Botcraft::EntityEffectType::Saturation
@ Saturation
Botcraft::EntityEffectType::Poison
@ Poison
Botcraft::EntityEffectType::Weaving
@ Weaving
Botcraft::EntityEffectType::Speed
@ Speed
Botcraft::EntityEffectType::SlowFalling
@ SlowFalling
Botcraft::EntityEffectType::HealthBoost
@ HealthBoost
Botcraft::EntityEffectType::Hunger
@ Hunger
Botcraft::EntityEffectType::Strength
@ Strength
Botcraft::EntityEffectType::Levitation
@ Levitation
Botcraft::EntityEffectType::Nausea
@ Nausea
Botcraft::EntityEffectType::Darkness
@ Darkness
Botcraft::EntityEffectType::HeroOfTheVillage
@ HeroOfTheVillage
Botcraft::EntityEffectType::InstantHealth
@ InstantHealth
Botcraft::EntityEffectType::Unluck
@ Unluck
Botcraft::EntityEffectType::Invisibility
@ Invisibility
Botcraft::EntityEffectType::ConduitPower
@ ConduitPower
Botcraft::EntityEffectType::JumpBoost
@ JumpBoost
Botcraft::EntityEffectType::InstantDamage
@ InstantDamage
Botcraft::EntityEffectType::Regeneration
@ Regeneration
Botcraft::EntityEffectType::Resistance
@ Resistance
Botcraft::EntityEffectType::Luck
@ Luck
Botcraft::EntityEffectType::MiningFatigue
@ MiningFatigue
Botcraft::EntityEffectType::Wither
@ Wither
Botcraft::EntityEffectType::Oozing
@ Oozing
Botcraft::EntityEffectType::FireResistance
@ FireResistance
Botcraft::EntityEffectType::Weakness
@ Weakness
Botcraft::EntityEffectType::WaterBreathing
@ WaterBreathing
Botcraft::EntityEffectType::Infested
@ Infested
Botcraft::EntityEffectType::RaidOmen
@ RaidOmen
Botcraft::EntityEffectType::WindCharged
@ WindCharged
Botcraft::EntityEffectType::Blindness
@ Blindness
Botcraft::EntityEffectType::Haste
@ Haste
Botcraft::EntityEffectType::Absorption
@ Absorption
Botcraft::EntityEffectType::Slowness
@ Slowness
Botcraft::operator<<
std::ostream & operator<<(std::ostream &os, const EntityAttribute::Type v)
Botcraft::ChatMode
ChatMode
Definition
Enums.hpp:9
Botcraft::ChatMode::Enabled
@ Enabled
Botcraft::ChatMode::CommandsOnly
@ CommandsOnly
Botcraft::ChatMode::Hidden
@ Hidden
Botcraft::EntityType::None
@ None
Botcraft::TintType
TintType
Definition
Enums.hpp:159
Botcraft::TintType::Water
@ Water
Botcraft::TintType::Leaves
@ Leaves
Botcraft::TintType::Grass
@ Grass
Botcraft::TintType::Redstone
@ Redstone
Botcraft::EntitySharedFlagsId::Glowing
@ Glowing
Botcraft::EntitySharedFlagsId::FallFlying
@ FallFlying
Botcraft::EntitySharedFlagsId::Swimming
@ Swimming
Botcraft::Hand
Hand
Definition
Enums.hpp:150
Botcraft::Hand::Right
@ Right
Botcraft::Hand::Left
@ Left
Botcraft::Hand::Main
@ Main
Botcraft::Hand::Off
@ Off
botcraft
include
botcraft
Game
Enums.hpp
Generated by
1.9.8