Botcraft
1.21.11
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
#if PROTOCOL_VERSION > 773
/* > 1.21.10 */
134
Lunge
,
135
#endif
136
Channeling
,
137
#if PROTOCOL_VERSION > 404
/* > 1.13.2 */
138
Multishot
,
139
QuickCharge
,
140
Piercing
,
141
#endif
142
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
143
Density
,
144
Breach
,
145
WindBurst
,
146
#endif
147
Mending
,
148
VanishingCurse
,
149
};
150
#endif
151
152
enum class
Hand
153
{
154
Right
= 0,
155
Main
= 0,
156
Left
= 1,
157
Off
= 1
158
};
159
std::ostream&
operator<<
(std::ostream& os,
const
Hand
v);
160
161
enum class
TintType
:
char
162
{
163
None
,
164
Water
,
165
Redstone
,
166
Grass
,
167
Leaves
168
};
169
170
enum class
Orientation
171
{
172
None
= -1,
173
/// @brief y = -1
174
Bottom
= 0,
175
/// @brief z = -1
176
North
,
177
/// @brief x = -1
178
West
,
179
/// @brief x = 1
180
East
,
181
/// @brief z = 1
182
South
,
183
/// @brief y = 1
184
Top
185
};
186
187
enum class
PlayerDiggingStatus
188
{
189
StartDigging
= 0,
190
CancelDigging
,
191
FinishDigging
,
192
DropItemStack
,
193
DropItem
,
194
ShootArrow
,
195
FinishEating
=
ShootArrow
,
196
SwapItemHand
,
197
#if PROTOCOL_VERSION > 773
/* > 1.21.10 */
198
Stab
,
199
#endif
200
};
201
202
enum class
Direction
203
{
204
/// @brief -Y
205
Down
= 0,
206
/// @brief +Y
207
Up
,
208
/// @brief -Z
209
North
,
210
/// @brief +Z
211
South
,
212
/// @brief -X
213
West
,
214
/// @brief +X
215
East
216
};
217
typedef
Direction
PlayerDiggingFace
;
218
std::ostream&
operator<<
(std::ostream& os,
const
Direction
v);
219
220
// Types are detailed in registries, see https://wiki.vg/Inventory
221
222
enum class
InventoryType
223
{
224
PlayerInventory
= -2,
225
Default
= -1,
226
Generic9x1
= 0,
227
Generic9x2
,
228
Generic9x3
,
229
Generic9x4
,
230
Generic9x5
,
231
Generic9x6
,
232
Generic3x3
,
233
#if PROTOCOL_VERSION > 764
/* > 1.20.2 */
234
Crafter3x3
,
235
#endif
236
Anvil
,
237
Beacon
,
238
BlastFurnace
,
239
BrewingStand
,
240
Crafting
,
241
Enchantment
,
242
Furnace
,
243
Grindstone
,
244
Hopper
,
245
Lectern
,
246
Loom
,
247
Merchant
,
248
ShulkerBox
,
249
Smithing
,
250
Smoker
,
251
CartographyTable
,
252
StoneCutter
253
};
254
255
enum class
Pose
256
{
257
Standing
,
258
FallFlying
,
259
Sleeping
,
260
Swimming
,
261
SpinAttack
,
262
Crouching
,
263
LongJumping
,
264
Dying
,
265
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
266
Croaking
,
267
UsingTongue
,
268
Sitting
,
269
Roaring
,
270
Sniffing
,
271
Emerging
,
272
Digging
,
273
#endif
274
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
275
Sliding
,
276
Shooting
,
277
Inhaling
,
278
#endif
279
};
280
281
enum class
EquipmentSlot
282
{
283
MainHand
= 0,
284
OffHand
,
285
Boots
,
286
Leggings
,
287
ChestPlate
,
288
Helmet
,
289
#if PROTOCOL_VERSION > 766
/* > 1.20.6 */
290
BodyAnimalArmor
,
291
#endif
292
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
293
Saddle
,
294
#endif
295
};
296
297
enum class
ToolMaterial
:
char
298
{
299
None
= 0,
300
Wood
,
301
Gold
,
302
Stone
,
303
#if PROTOCOL_VERSION > 772
/* > 1.21.8 */
304
Copper
,
305
#endif
306
Iron
,
307
Diamond
,
308
#if PROTOCOL_VERSION > 578
/* > 1.15.2 */
309
Netherite
,
310
#endif
311
NUM_TOOL_MATERIAL
312
};
313
314
enum class
ToolType
:
char
315
{
316
None
= 0,
317
Axe
,
318
Hoe
,
319
Pickaxe
,
320
Shears
,
321
Shovel
,
322
Sword
,
323
NUM_TOOL_TYPE
324
};
325
326
enum class
EntityEffectType
327
{
328
#if PROTOCOL_VERSION < 764
/* < 1.20.2 */
329
None
= 0,
330
#else
331
None
= -1,
332
#endif
333
Speed
,
334
Slowness
,
335
Haste
,
336
MiningFatigue
,
337
Strength
,
338
InstantHealth
,
339
InstantDamage
,
340
JumpBoost
,
341
Nausea
,
342
Regeneration
,
343
Resistance
,
344
FireResistance
,
345
WaterBreathing
,
346
Invisibility
,
347
Blindness
,
348
NightVision
,
349
Hunger
,
350
Weakness
,
351
Poison
,
352
Wither
,
353
HealthBoost
,
354
Absorption
,
355
Saturation
,
356
Glowing
,
357
Levitation
,
358
Luck
,
359
Unluck
,
360
#if PROTOCOL_VERSION > 340
/* > 1.12.2 */
361
SlowFalling
,
362
ConduitPower
,
363
DolphinsGrace
,
364
#endif
365
#if PROTOCOL_VERSION > 404
/* > 1.13.2 */
366
BadOmen
,
367
HeroOfTheVillage
,
368
#endif
369
#if PROTOCOL_VERSION > 758
/* > 1.18.2 */
370
Darkness
,
371
#endif
372
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
373
TrialOmen
,
374
RaidOmen
,
375
WindCharged
,
376
Weaving
,
377
Oozing
,
378
Infested
,
379
#endif
380
#if PROTOCOL_VERSION > 773
/* > 1.21.10 */
381
BreathOfTheNautilus
,
382
#endif
383
};
384
385
enum class
PlayerCommandAction
386
{
387
#if PROTOCOL_VERSION < 771
/* < 1.21.6 */
388
PressShiftKey,
389
ReleaseShiftKey,
390
#endif
391
StopSleeping
,
392
StartSprinting
,
393
StopSprinting
,
394
StartRidingJump
,
395
StopRidingJump
,
396
OpenInventory
,
397
StartFallFlying
398
};
399
}
// Botcraft
Botcraft
Definition
BaseNode.hpp:6
Botcraft::InventoryType
InventoryType
Definition
Enums.hpp:223
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:256
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:298
Botcraft::ToolMaterial::Stone
@ Stone
Botcraft::ToolMaterial::Wood
@ Wood
Botcraft::ToolMaterial::Netherite
@ Netherite
Botcraft::ToolMaterial::Diamond
@ Diamond
Botcraft::ToolMaterial::Gold
@ Gold
Botcraft::ToolMaterial::Copper
@ Copper
Botcraft::ToolMaterial::NUM_TOOL_MATERIAL
@ NUM_TOOL_MATERIAL
Botcraft::ToolMaterial::Iron
@ Iron
Botcraft::PlayerCommandAction
PlayerCommandAction
Definition
Enums.hpp:386
Botcraft::PlayerCommandAction::StartFallFlying
@ StartFallFlying
Botcraft::PlayerCommandAction::StopSprinting
@ StopSprinting
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:188
Botcraft::PlayerDiggingStatus::StartDigging
@ StartDigging
Botcraft::PlayerDiggingStatus::DropItem
@ DropItem
Botcraft::PlayerDiggingStatus::FinishDigging
@ FinishDigging
Botcraft::PlayerDiggingStatus::FinishEating
@ FinishEating
Botcraft::PlayerDiggingStatus::CancelDigging
@ CancelDigging
Botcraft::PlayerDiggingStatus::Stab
@ Stab
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::Lunge
@ Lunge
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:171
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:315
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:217
Botcraft::EquipmentSlot
EquipmentSlot
Definition
Enums.hpp:282
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::EquipmentSlot::Saddle
@ Saddle
Botcraft::Direction
Direction
Definition
Enums.hpp:203
Botcraft::Direction::Down
@ Down
-Y
Botcraft::Direction::Up
@ Up
+Y
Botcraft::EntityEffectType
EntityEffectType
Definition
Enums.hpp:327
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::BreathOfTheNautilus
@ BreathOfTheNautilus
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:162
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:153
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