diff options
author | QUSpilPrgm <QUSpilPrgm@users.noreply.github.com> | 2016-05-29 10:30:47 +0200 |
---|---|---|
committer | QUSpilPrgm <QUSpilPrgm@users.noreply.github.com> | 2016-06-03 15:45:49 +0200 |
commit | 706257f8fbd897dc6087fa93269dd964d633d0f8 (patch) | |
tree | 6dd9d70ac993c04993580345b246f5d0c52f1ccc /src/Defines.h | |
parent | Debuggers: Added the forgotten Inject.lua file. (diff) | |
download | cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar.gz cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar.bz2 cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar.lz cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar.xz cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.tar.zst cuberite-706257f8fbd897dc6087fa93269dd964d633d0f8.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h index 37b80cca3..13049ce4f 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -788,6 +788,19 @@ namespace ItemCategory + inline bool IsMinecart(short a_ItemType) + { + return ( + (a_ItemType == E_ITEM_MINECART) || + (a_ItemType == E_ITEM_CHEST_MINECART) || + (a_ItemType == E_ITEM_FURNACE_MINECART) || + (a_ItemType == E_ITEM_MINECART_WITH_TNT) || + (a_ItemType == E_ITEM_MINECART_WITH_HOPPER) + ); + } + + + inline bool IsArmor(short a_ItemType) { return ( |