diff options
author | madmaxoft <github@xoft.cz> | 2013-08-30 18:10:58 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-30 18:10:58 +0200 |
commit | d7a52870003e46858bec65cc76880cecc5de7bb8 (patch) | |
tree | 67d10f543dc8ed0b49da5ecb61cc0d989a246309 /source/Items/ItemHandler.cpp | |
parent | Moved throw pos and speed calculation from cProjectileEntity into cPlayer. (diff) | |
download | cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar.gz cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar.bz2 cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar.lz cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar.xz cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.tar.zst cuberite-d7a52870003e46858bec65cc76880cecc5de7bb8.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Items/ItemHandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Items/ItemHandler.cpp b/source/Items/ItemHandler.cpp index c0de4a6ec..2ae193d52 100644 --- a/source/Items/ItemHandler.cpp +++ b/source/Items/ItemHandler.cpp @@ -22,6 +22,7 @@ #include "ItemLighter.h" #include "ItemMinecart.h" #include "ItemPickaxe.h" +#include "ItemThrowable.h" #include "ItemRedstoneDust.h" #include "ItemRedstoneRepeater.h" #include "ItemSapling.h" @@ -88,12 +89,15 @@ cItemHandler *cItemHandler::CreateItemHandler(int a_ItemType) case E_ITEM_BREWING_STAND: return new cItemBrewingStandHandler(a_ItemType); case E_ITEM_CAULDRON: return new cItemCauldronHandler(a_ItemType); case E_ITEM_DYE: return new cItemDyeHandler(a_ItemType); + case E_ITEM_EGG: return new cItemEggHandler(); + case E_ITEM_ENDER_PEARL: return new cItemEnderPearlHandler(); case E_ITEM_FLINT_AND_STEEL: return new cItemLighterHandler(a_ItemType); case E_ITEM_FLOWER_POT: return new cItemFlowerPotHandler(a_ItemType); case E_ITEM_REDSTONE_DUST: return new cItemRedstoneDustHandler(a_ItemType); case E_ITEM_REDSTONE_REPEATER: return new cItemRedstoneRepeaterHandler(a_ItemType); case E_ITEM_SHEARS: return new cItemShearsHandler(a_ItemType); case E_ITEM_SIGN: return new cItemSignHandler(a_ItemType); + case E_ITEM_SNOWBALL: return new cItemSnowballHandler(); case E_ITEM_SPAWN_EGG: return new cItemSpawnEggHandler(a_ItemType); case E_ITEM_SUGARCANE: return new cItemSugarcaneHandler(a_ItemType); |