From a62b2b1be2103d7de2fd66c7304b7473e369be3c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 5 May 2021 14:25:10 +0100 Subject: Move item placement into item handlers (#5184) * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo Co-authored-by: Xotheus Co-authored-by: Krist Pregracke * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo Co-authored-by: Xotheus Co-authored-by: Krist Pregracke --- src/Items/CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/Items/CMakeLists.txt') diff --git a/src/Items/CMakeLists.txt b/src/Items/CMakeLists.txt index 0046386d0..3f182dd76 100644 --- a/src/Items/CMakeLists.txt +++ b/src/Items/CMakeLists.txt @@ -3,6 +3,7 @@ target_sources( ItemHandler.cpp + ItemAnvil.h ItemArmor.h ItemAxe.h ItemBanner.h @@ -12,24 +13,35 @@ target_sources( ItemBottle.h ItemBow.h ItemBucket.h + ItemButton.h ItemChest.h ItemCloth.h ItemComparator.h ItemCookedFish.h ItemDoor.h + ItemDropSpenser.h ItemDye.h ItemEmptyMap.h ItemEnchantingTable.h ItemEndCrystal.h + ItemEndPortalFrame.h + ItemEnderchest.h ItemEyeOfEnder.h + ItemFenceGate.h ItemFishingRod.h ItemFood.h ItemFoodSeeds.h + ItemFurnace.h + ItemGlazedTerracotta.h ItemGoldenApple.h ItemHandler.h ItemHoe.h + ItemHopper.h ItemItemFrame.h + ItemJackOLantern.h + ItemLadder.h ItemLeaves.h + ItemLever.h ItemLighter.h ItemLilypad.h ItemMap.h @@ -37,11 +49,16 @@ target_sources( ItemMinecart.h ItemMobHead.h ItemNetherWart.h + ItemObserver.h ItemPainting.h ItemPickaxe.h + ItemPiston.h + ItemPlanks.h ItemPoisonousPotato.h ItemPotion.h ItemPumpkin.h + ItemQuartz.h + ItemRail.h ItemRawChicken.h ItemRawFish.h ItemRedstoneDust.h @@ -51,12 +68,19 @@ target_sources( ItemSeeds.h ItemShears.h ItemShovel.h + ItemSideways.h ItemSign.h ItemSlab.h + ItemSnow.h ItemSoup.h ItemSpawnEgg.h ItemSpiderEye.h + ItemStairs.h ItemSword.h ItemThrowable.h + ItemTorch.h + ItemTrapdoor.h + ItemTripwireHook.h + ItemVine.h SimplePlaceableItemHandler.h ) -- cgit v1.2.3