Cuberite
A lightweight, fast and extensible game server for Minecraft
Defines.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 
6 
7 
9 typedef std::vector<int> cSlotNums;
10 
11 
12 
13 
14 
16 constexpr inline const int TPS = 20;
17 // This is not added to the lua API because it broke the build
18 
19 
20 
21 
22 
23 // tolua_begin
24 
26 enum
27 {
28  // Open to suggestion on naming convention here :)
30 } ;
31 
32 
33 
34 
35 
38 {
39  BLOCK_FACE_NONE = -1, // Interacting with no block face - swinging the item in the air
40  BLOCK_FACE_XM = 4, // Interacting with the X- face of the block
41  BLOCK_FACE_XP = 5, // Interacting with the X+ face of the block
42  BLOCK_FACE_YM = 0, // Interacting with the Y- face of the block
43  BLOCK_FACE_YP = 1, // Interacting with the Y+ face of the block
44  BLOCK_FACE_ZM = 2, // Interacting with the Z- face of the block
45  BLOCK_FACE_ZP = 3, // Interacting with the Z+ face of the block
46 
47  // Synonyms using the (deprecated) world directions:
48  BLOCK_FACE_BOTTOM = BLOCK_FACE_YM, // Interacting with the bottom face of the block
49  BLOCK_FACE_TOP = BLOCK_FACE_YP, // Interacting with the top face of the block
50  BLOCK_FACE_NORTH = BLOCK_FACE_ZM, // Interacting with the northern face of the block
51  BLOCK_FACE_SOUTH = BLOCK_FACE_ZP, // Interacting with the southern face of the block
52  BLOCK_FACE_WEST = BLOCK_FACE_XM, // Interacting with the western face of the block
53  BLOCK_FACE_EAST = BLOCK_FACE_XP, // Interacting with the eastern face of the block
54 
55  // Bounds, used for range-checking:
58 } ;
59 
60 
61 
62 
63 
65 enum
66 {
74 } ;
75 
76 
77 
78 
79 
82 {
83  // Sorted by occurrence in the 1.5 protocol
114  // Add new actions here
115  caUnknown = 255,
116 
117  // Keep this list in sync with ClickActionToString() function below!
118 } ;
119 
120 
121 
122 
123 
125 {
131 
132  // Easier-to-use synonyms:
138 
139  // These two are used to check GameMode for validity when converting from integers.
140  gmMax, // Gets automatically assigned
141  gmMin = 0,
142 } ;
143 
144 
145 
146 
147 
149 {
151  ctSystem = 1,
153 } ;
154 
155 
156 
157 
158 
160 {
164 
165  // Easier-to-use synonyms:
170 } ;
171 
172 
173 
174 
175 
177 {
184 } ;
185 
186 
187 
188 
189 
191 {
208 } ;
209 
210 
211 
212 
213 
215 {
216  spCape = 0x01,
217  spJacket = 0x02,
218  spLeftSleeve = 0x04,
220  spLeftPants = 0x10,
221  spRightPants = 0x20,
222  spHat = 0x40,
223  spMask = 0x7F,
224 };
225 
226 
227 
228 
231 {
232  dimNether = -1,
234  dimEnd = 1,
235  dimNotSet = 255, // For things that need an "indeterminate" state, such as cProtocol's LastSentDimension
236 } ;
237 
238 
239 
240 
241 
244 {
245  // Canonical names for the types (as documented in the plugin wiki):
246  dtAttack, // Being attacked by a mob
247  dtRangedAttack, // Being attacked by a projectile, possibly from a mob
248  dtLightning, // Hit by a lightning strike
249  dtFalling, // Falling down; dealt when hitting the ground
250  dtDrowning, // Drowning in water / lava
251  dtSuffocating, // Suffocating inside a block
252  dtStarving, // Hunger
253  dtCactusContact, // Contact with a cactus block
254  dtMagmaContact, // Contact with a magma block
255  dtLavaContact, // Contact with a lava block
256  dtPoisoning, // Having the poison effect
257  dtWithering, // Having the wither effect
258  dtOnFire, // Being on fire
259  dtFireContact, // Standing inside a fire block
260  dtInVoid, // Falling into the Void (Y < 0)
262  dtEnderPearl, // Thrown an ender pearl, teleported by it
263  dtAdmin, // Damage applied by an admin command
264  dtExplosion, // Damage applied by an explosion
265  dtEnvironment, // Damage dealt to mobs from environment: enderman in rain, snow golem in desert
266 
267  // Some common synonyms:
290 } ;
291 
292 
293 
294 
295 
309 {
321 } ;
322 
323 
324 
325 
326 
328 {
331  slAll
332 } ;
333 
334 
335 
336 
337 
339 {
345 } ;
346 
347 
348 
349 
350 
352 {
353  // https://forum.cuberite.org/thread-1212.html
354  // MessageType...
355 
356  mtCustom, // Send raw data without any processing
357  mtFailure, // Something could not be done (i.e. command not executed due to insufficient privilege)
358  mtInformation, // Informational message (i.e. command usage)
359  mtSuccess, // Something executed successfully
360  mtWarning, // Something concerning (i.e. reload) is about to happen
361  mtFatal, // Something catastrophic occured (i.e. plugin crash)
362  mtDeath, // Denotes death of player
363  mtPrivateMessage, // Player to player messaging identifier
364  mtJoin, // A player has joined the server
365  mtLeave, // A player has left the server
366  mtMaxPlusOne, // The first invalid type, used for checking on LuaAPI boundaries
367 
368  // Common aliases:
373 };
374 
375 
376 
377 
378 
379 enum class BannerPattern
380 {
381  BottomStripe,
382  TopStripe,
383  LeftStripe,
384  RightStripe,
391  SquareCross,
405  TopTriangle,
408  MiddleCircle,
410  Border,
411  CurlyBorder,
412  Brick,
413  Gradient,
415  Creeper,
416  Skull,
417  Flower,
418  Mojang,
419  Globe,
420  Piglin
421 };
422 
423 
424 
425 
426 
427 enum class BossBarColor
428 {
429  Pink,
430  Blue,
431  Red,
432  Green,
433  Yellow,
434  Purple,
435  White
436 };
437 
438 
439 
440 
441 
443 {
444  None,
445  SixNotches,
446  TenNotches,
449 };
450 
451 // tolua_end
452 
453 
454 
455 
456 
457 enum class EntityAnimation
458 {
463  EggCracks,
469  // FishingHookReels,
470  FoxChews,
480  MobSpawns,
481  OcelotTrusts,
484  PawnBurns,
486  PawnDies,
487  PawnDrowns,
491  PawnHurts,
505  // PlayerReducedDebugScreenDisables,
506  // PlayerReducedDebugScreenEnables,
508  RabbitJumps,
513  // SquidResetsRotation,
518  WitchMagicks,
524 };
525 
526 
527 
528 
529 
530 // tolua_begin
531 
533 const char * ClickActionToString(int a_ClickAction);
534 
537 
540 
543 
546 
549 
551 bool IsValidBlock(int a_BlockType);
552 
554 bool IsValidItem(int a_ItemType);
555 
557 extern eDimension StringToDimension(const AString & a_DimensionString);
558 
561 extern AString DimensionToString(eDimension a_Dimension);
562 
564 extern AString DamageTypeToString(eDamageType a_DamageType);
565 
567 extern eDamageType StringToDamageType(const AString & a_DamageString);
568 
571 void AddFaceDirection(int & a_BlockX, int & a_BlockY, int & a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse = false);
572 
575 Vector3i AddFaceDirection(Vector3i a_Pos, eBlockFace a_BlockFace, bool a_InvertDirection = false);
576 
577 // tolua_end
578 
579 
580 
581 
582 
583 inline void EulerToVector(double a_Pan, double a_Pitch, double & a_X, double & a_Y, double & a_Z)
584 {
585  // a_X = sinf ( a_Pan / 180 * PI) * cosf ( a_Pitch / 180 * PI);
586  // a_Y = -sinf ( a_Pitch / 180 * PI);
587  // a_Z = -cosf ( a_Pan / 180 * PI) * cosf ( a_Pitch / 180 * PI);
588  a_X = cos(a_Pan / 180 * M_PI) * cos(a_Pitch / 180 * M_PI);
589  a_Y = sin(a_Pan / 180 * M_PI) * cos(a_Pitch / 180 * M_PI);
590  a_Z = sin(a_Pitch / 180 * M_PI);
591 }
592 
593 
594 
595 
596 
597 inline void VectorToEuler(double a_X, double a_Y, double a_Z, double & a_Pan, double & a_Pitch)
598 {
599  double r = sqrt((a_X * a_X) + (a_Z * a_Z));
600  if (r < std::numeric_limits<double>::epsilon())
601  {
602  a_Pan = 0;
603  }
604  else
605  {
606  a_Pan = atan2(a_Z, a_X) * 180 / M_PI - 90;
607  }
608 
609  a_Pitch = atan2(a_Y, r) * 180 / M_PI;
610 }
611 
612 
613 
614 
615 
616 template <class T>
617 inline T Diff(T a_Val1, T a_Val2)
618 {
619  return std::abs(a_Val1 - a_Val2);
620 }
621 
622 
623 
624 
625 
626 // tolua_begin
627 
629 inline double NormalizeAngleDegrees(const double a_Degrees)
630 {
631  double Norm = fmod(a_Degrees + 180, 360);
632  if (Norm < 0)
633  {
634  Norm += 360;
635  }
636  return Norm - 180;
637 }
638 
639 
640 
641 
642 
643 namespace ItemCategory
644 {
645  bool IsPickaxe(short a_ItemType);
646 
647  bool IsAxe(short a_ItemType);
648 
649  bool IsSword(short a_ItemType);
650 
651  bool IsHoe(short a_ItemType);
652 
653  bool IsShovel(short a_ItemType);
654 
655  bool IsTool(short a_ItemType);
656 
657  bool IsHelmet(short a_ItemType);
658 
659  bool IsChestPlate(short a_ItemType);
660 
661  bool IsLeggings(short a_ItemType);
662 
663  bool IsBoots(short a_ItemType);
664 
665  bool IsMinecart(short a_ItemType);
666 
667  bool IsArmor(short a_ItemType);
668 
669  bool IsHorseArmor(short a_ItemType);
670 
671  bool IsVillagerFood(short a_ItemType);
672 }
673 
674 // tolua_end
eWeather
Definition: Defines.h:160
@ eWeather_ThunderStorm
Definition: Defines.h:163
@ eWeather_Sunny
Definition: Defines.h:161
@ wThunderstorm
Definition: Defines.h:168
@ wRain
Definition: Defines.h:167
@ eWeather_Rain
Definition: Defines.h:162
@ wStorm
Definition: Defines.h:169
@ wSunny
Definition: Defines.h:166
T Diff(T a_Val1, T a_Val2)
Definition: Defines.h:617
BossBarDivisionType
Definition: Defines.h:443
BannerPattern
Definition: Defines.h:380
@ RightOfUpsideDownDiagonal
@ LeftOfUpsideDownDiagonal
EntityAnimation
Definition: Defines.h:458
@ EntityGetsMagicalCriticalHit
eChatType
Definition: Defines.h:149
@ ctAboveActionBar
Definition: Defines.h:152
@ ctChatBox
Definition: Defines.h:150
@ ctSystem
Definition: Defines.h:151
eDamageType StringToDamageType(const AString &a_DamageString)
Translates a damage type string to damage type.
Definition: Defines.cpp:300
eMobHeadRotation
Definition: Defines.h:191
@ SKULL_ROTATION_NORTH_EAST
Definition: Defines.h:194
@ SKULL_ROTATION_NORTH
Definition: Defines.h:192
@ SKULL_ROTATION_NORTH_NORTH_EAST
Definition: Defines.h:193
@ SKULL_ROTATION_NORTH_WEST
Definition: Defines.h:206
@ SKULL_ROTATION_WEST_NORTH_WEST
Definition: Defines.h:205
@ SKULL_ROTATION_WEST
Definition: Defines.h:204
@ SKULL_ROTATION_SOUTH_SOUTH_EAST
Definition: Defines.h:199
@ SKULL_ROTATION_SOUTH_SOUTH_WEST
Definition: Defines.h:201
@ SKULL_ROTATION_EAST_SOUTH_EAST
Definition: Defines.h:197
@ SKULL_ROTATION_SOUTH_WEST
Definition: Defines.h:202
@ SKULL_ROTATION_WEST_SOUTH_WEST
Definition: Defines.h:203
@ SKULL_ROTATION_SOUTH
Definition: Defines.h:200
@ SKULL_ROTATION_NORTH_NORTH_WEST
Definition: Defines.h:207
@ SKULL_ROTATION_SOUTH_EAST
Definition: Defines.h:198
@ SKULL_ROTATION_EAST_NORTH_EAST
Definition: Defines.h:195
@ SKULL_ROTATION_EAST
Definition: Defines.h:196
bool IsValidBlock(int a_BlockType)
Returns true if the specified block type is valid (known).
Definition: Defines.cpp:160
eBlockFace ReverseBlockFace(eBlockFace a_BlockFace)
Returns a blockface opposite to the one specified.
Definition: Defines.cpp:121
eSkinPart
Definition: Defines.h:215
@ spMask
Definition: Defines.h:223
@ spLeftSleeve
Definition: Defines.h:218
@ spRightSleeve
Definition: Defines.h:219
@ spHat
Definition: Defines.h:222
@ spCape
Definition: Defines.h:216
@ spRightPants
Definition: Defines.h:221
@ spLeftPants
Definition: Defines.h:220
@ spJacket
Definition: Defines.h:217
@ DIG_STATUS_SWAP_ITEM_IN_HAND
Definition: Defines.h:73
@ DIG_STATUS_CANCELLED
Definition: Defines.h:68
@ DIG_STATUS_SHOOT_EAT
Definition: Defines.h:72
@ DIG_STATUS_DROP_STACK
Definition: Defines.h:70
@ DIG_STATUS_STARTED
Definition: Defines.h:67
@ DIG_STATUS_DROP_HELD
Definition: Defines.h:71
@ DIG_STATUS_FINISHED
Definition: Defines.h:69
eDimension
Dimension of a world.
Definition: Defines.h:231
@ dimEnd
Definition: Defines.h:234
@ dimNether
Definition: Defines.h:232
@ dimOverworld
Definition: Defines.h:233
@ dimNotSet
Definition: Defines.h:235
eGameMode
Definition: Defines.h:125
@ gmCreative
Definition: Defines.h:135
@ eGameMode_Spectator
Definition: Defines.h:130
@ gmNotSet
Definition: Defines.h:133
@ gmMax
Definition: Defines.h:140
@ eGameMode_Creative
Definition: Defines.h:128
@ gmAdventure
Definition: Defines.h:136
@ eGameMode_NotSet
Definition: Defines.h:126
@ gmSurvival
Definition: Defines.h:134
@ eGameMode_Adventure
Definition: Defines.h:129
@ gmSpectator
Definition: Defines.h:137
@ eGameMode_Survival
Definition: Defines.h:127
@ gmMin
Definition: Defines.h:141
double NormalizeAngleDegrees(const double a_Degrees)
Normalizes an angle in degrees to the [-180, +180) range:
Definition: Defines.h:629
void EulerToVector(double a_Pan, double a_Pitch, double &a_X, double &a_Y, double &a_Z)
Definition: Defines.h:583
AString DimensionToString(eDimension a_Dimension)
Translates a dimension enum to dimension string.
Definition: Defines.cpp:236
eExplosionSource
The source of an explosion.
Definition: Defines.h:309
@ esMonster
Definition: Defines.h:313
@ esOther
Definition: Defines.h:314
@ esWitherSkull
Definition: Defines.h:319
@ esEnderCrystal
Definition: Defines.h:311
@ esMax
Definition: Defines.h:320
@ esPlugin
Definition: Defines.h:315
@ esTNTMinecart
Definition: Defines.h:317
@ esPrimedTNT
Definition: Defines.h:316
@ esBed
Definition: Defines.h:310
@ esWitherBirth
Definition: Defines.h:318
@ esGhastFireball
Definition: Defines.h:312
eClickAction
Individual actions sent in the WindowClick packet.
Definition: Defines.h:82
@ caRightPaintProgress
Definition: Defines.h:108
@ caDblClick
Definition: Defines.h:113
@ caLeftPaintProgress
Definition: Defines.h:107
@ caNumber6
Definition: Defines.h:93
@ caNumber8
Definition: Defines.h:95
@ caMiddleClick
Definition: Defines.h:97
@ caCtrlDropKey
Definition: Defines.h:99
@ caLeftPaintEnd
Definition: Defines.h:110
@ caLeftClickOutside
Definition: Defines.h:100
@ caMiddlePaintEnd
Definition: Defines.h:112
@ caLeftClickOutsideHoldNothing
Definition: Defines.h:102
@ caDropKey
Definition: Defines.h:98
@ caShiftRightClick
Definition: Defines.h:87
@ caNumber7
Definition: Defines.h:94
@ caRightClick
Definition: Defines.h:85
@ caNumber4
Definition: Defines.h:91
@ caNumber1
Definition: Defines.h:88
@ caMiddlePaintBegin
Definition: Defines.h:106
@ caMiddlePaintProgress
Definition: Defines.h:109
@ caNumber3
Definition: Defines.h:90
@ caLeftPaintBegin
Definition: Defines.h:104
@ caRightClickOutsideHoldNothing
Definition: Defines.h:103
@ caNumber9
Definition: Defines.h:96
@ caNumber2
Definition: Defines.h:89
@ caRightPaintEnd
Definition: Defines.h:111
@ caRightClickOutside
Definition: Defines.h:101
@ caUnknown
Definition: Defines.h:115
@ caShiftLeftClick
Definition: Defines.h:86
@ caNumber5
Definition: Defines.h:92
@ caRightPaintBegin
Definition: Defines.h:105
@ caLeftClick
Definition: Defines.h:84
eMessageType
Definition: Defines.h:352
@ mtPM
Definition: Defines.h:372
@ mtWarning
Definition: Defines.h:360
@ mtPrivateMessage
Definition: Defines.h:363
@ mtJoin
Definition: Defines.h:364
@ mtMaxPlusOne
Definition: Defines.h:366
@ mtSuccess
Definition: Defines.h:359
@ mtFail
Definition: Defines.h:369
@ mtInfo
Definition: Defines.h:371
@ mtCustom
Definition: Defines.h:356
@ mtError
Definition: Defines.h:370
@ mtInformation
Definition: Defines.h:358
@ mtDeath
Definition: Defines.h:362
@ mtLeave
Definition: Defines.h:365
@ mtFatal
Definition: Defines.h:361
@ mtFailure
Definition: Defines.h:357
eShrapnelLevel
Definition: Defines.h:328
@ slNone
Definition: Defines.h:329
@ slGravityAffectedOnly
Definition: Defines.h:330
@ slAll
Definition: Defines.h:331
eDamageType
Damage type, used in the TakeDamageInfo structure and related functions.
Definition: Defines.h:244
@ dtAdmin
Definition: Defines.h:263
@ dtInFire
Definition: Defines.h:288
@ dtEntityAttack
Definition: Defines.h:269
@ dtHunger
Definition: Defines.h:279
@ dtPoisoning
Definition: Defines.h:256
@ dtSuffocating
Definition: Defines.h:251
@ dtMagmaContact
Definition: Defines.h:254
@ dtAttack
Definition: Defines.h:246
@ dtMobAttack
Definition: Defines.h:271
@ dtArrow
Definition: Defines.h:273
@ dtStarving
Definition: Defines.h:252
@ dtExplosion
Definition: Defines.h:264
@ dtInVoid
Definition: Defines.h:260
@ dtFireContact
Definition: Defines.h:259
@ dtEnderPearl
Definition: Defines.h:262
@ dtDrowning
Definition: Defines.h:250
@ dtEnvironment
Definition: Defines.h:265
@ dtBurning
Definition: Defines.h:287
@ dtWithering
Definition: Defines.h:257
@ dtStarvation
Definition: Defines.h:278
@ dtCactuses
Definition: Defines.h:281
@ dtRangedAttack
Definition: Defines.h:247
@ dtArrowAttack
Definition: Defines.h:272
@ dtMagma
Definition: Defines.h:283
@ dtPawnAttack
Definition: Defines.h:268
@ dtFalling
Definition: Defines.h:249
@ dtFall
Definition: Defines.h:275
@ dtLava
Definition: Defines.h:284
@ dtOnFire
Definition: Defines.h:258
@ dtCacti
Definition: Defines.h:282
@ dtPoison
Definition: Defines.h:285
@ dtSuffocation
Definition: Defines.h:277
@ dtCactusContact
Definition: Defines.h:253
@ dtDrown
Definition: Defines.h:276
@ dtProjectile
Definition: Defines.h:274
@ dtLavaContact
Definition: Defines.h:255
@ dtCactus
Definition: Defines.h:280
@ dtLightning
Definition: Defines.h:248
@ dtPotionOfHarming
Definition: Defines.h:261
@ dtWither
Definition: Defines.h:286
@ dtPlugin
Definition: Defines.h:289
@ dtMob
Definition: Defines.h:270
bool IsValidItem(int a_ItemType)
Returns true if the specified item type is valid (known).
Definition: Defines.cpp:172
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
Definition: Defines.h:38
@ BLOCK_FACE_MIN
Definition: Defines.h:56
@ BLOCK_FACE_XP
Definition: Defines.h:41
@ BLOCK_FACE_EAST
Definition: Defines.h:53
@ BLOCK_FACE_YP
Definition: Defines.h:43
@ BLOCK_FACE_MAX
Definition: Defines.h:57
@ BLOCK_FACE_YM
Definition: Defines.h:42
@ BLOCK_FACE_SOUTH
Definition: Defines.h:51
@ BLOCK_FACE_TOP
Definition: Defines.h:49
@ BLOCK_FACE_WEST
Definition: Defines.h:52
@ BLOCK_FACE_ZM
Definition: Defines.h:44
@ BLOCK_FACE_BOTTOM
Definition: Defines.h:48
@ BLOCK_FACE_ZP
Definition: Defines.h:45
@ BLOCK_FACE_NORTH
Definition: Defines.h:50
@ BLOCK_FACE_XM
Definition: Defines.h:40
@ BLOCK_FACE_NONE
Definition: Defines.h:39
eBlockFace RotateBlockFaceCCW(eBlockFace a_BlockFace)
Returns a blockface rotated around the Y axis counter-clockwise.
Definition: Defines.cpp:77
constexpr const int TPS
Constant to calculate ticks from seconds "ticks per second".
Definition: Defines.h:16
BossBarColor
Definition: Defines.h:428
eSpreadSource
Definition: Defines.h:339
@ ssGrassSpread
Definition: Defines.h:341
@ ssFireSpread
Definition: Defines.h:340
@ ssVineSpread
Definition: Defines.h:344
@ ssMushroomSpread
Definition: Defines.h:342
@ ssMycelSpread
Definition: Defines.h:343
@ MAX_EXPERIENCE_ORB_SIZE
Definition: Defines.h:29
eMobHeadType
Definition: Defines.h:177
@ SKULL_TYPE_DRAGON
Definition: Defines.h:183
@ SKULL_TYPE_PLAYER
Definition: Defines.h:181
@ SKULL_TYPE_CREEPER
Definition: Defines.h:182
@ SKULL_TYPE_SKELETON
Definition: Defines.h:178
@ SKULL_TYPE_ZOMBIE
Definition: Defines.h:180
@ SKULL_TYPE_WITHER
Definition: Defines.h:179
eDimension StringToDimension(const AString &a_DimensionString)
Translates a dimension string to dimension enum.
Definition: Defines.cpp:194
AString DamageTypeToString(eDamageType a_DamageType)
Translates damage type constant to a string representation (built-in).
Definition: Defines.cpp:267
eBlockFace MirrorBlockFaceY(eBlockFace a_BlockFace)
Returns a blockface mirrored around the Y axis (doesn't change up / down).
Definition: Defines.cpp:54
AString BlockFaceToString(eBlockFace a_BlockFace)
Returns the textual representation of the BlockFace constant.
Definition: Defines.cpp:141
std::vector< int > cSlotNums
List of slot numbers, used for inventory-painting.
Definition: Defines.h:9
void VectorToEuler(double a_X, double a_Y, double a_Z, double &a_Pan, double &a_Pitch)
Definition: Defines.h:597
const char * ClickActionToString(int a_ClickAction)
Returns a textual representation of the click action.
Definition: Defines.cpp:10
void AddFaceDirection(int &a_BlockX, int &a_BlockY, int &a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse=false)
Modifies the specified coords so that they point to the block adjacent to the one specified through i...
Definition: Defines.cpp:378
eBlockFace RotateBlockFaceCW(eBlockFace a_BlockFace)
Returns a blockface rotated around the Y axis clockwise.
Definition: Defines.cpp:99
std::string AString
Definition: StringUtils.h:11
bool IsMinecart(short a_ItemType)
Definition: Defines.cpp:573
bool IsHoe(short a_ItemType)
Definition: Defines.cpp:473
bool IsHelmet(short a_ItemType)
Definition: Defines.cpp:512
bool IsPickaxe(short a_ItemType)
Definition: Defines.cpp:414
bool IsTool(short a_ItemType)
Definition: Defines.cpp:499
bool IsAxe(short a_ItemType)
Definition: Defines.cpp:437
bool IsVillagerFood(short a_ItemType)
Definition: Defines.cpp:623
bool IsLeggings(short a_ItemType)
Definition: Defines.cpp:543
bool IsChestPlate(short a_ItemType)
Definition: Defines.cpp:527
bool IsArmor(short a_ItemType)
Definition: Defines.cpp:588
bool IsBoots(short a_ItemType)
Definition: Defines.cpp:558
bool IsShovel(short a_ItemType)
Definition: Defines.cpp:486
bool IsHorseArmor(short a_ItemType)
Definition: Defines.cpp:602
bool IsSword(short a_ItemType)
Definition: Defines.cpp:460