1
0
Fork 0
cuberite-2a/src/Items
Tiger Wang 9b97d63f8f
Chest, weather, crash, and miscellaneous fixes (#5215)
* Alpha-sort cChestEntity

* Chests: use SendUpdateBlockEntity

* Pathfinder: fix out of range Y

* 1.13: correct weather packet ID

* Chests: fix neighbour scanner

+ Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest.
* Fix typo in cross coords computation.
* Simplify hopper logic.

* Block entities: ASSERT that type is correct

If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type.

* Chunk: fix some forgotten PendingSendBE cleanup

+ Add cleanup in SetAllData, WriteBlockArea
- Remove RemoveBlockEntity (used once), HasBlockEntity (not used)

* Replace MakeIndex with MakeIndexNoCheck

* Remove extraneous MarkDirty in hopper & chests
2021-04-30 13:23:46 +00:00
..
CMakeLists.txt Adding basic Banner functionality (#4806) 2021-03-15 02:47:55 +00:00
ItemArmor.h Basic elytra flight (#5124) 2021-04-03 18:45:20 +01:00
ItemAxe.h Using Super. 2020-04-16 20:07:48 +00:00
ItemBanner.h Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
ItemBed.h Beds: derestrict clicking block face (#4863) 2020-09-13 10:58:39 +00:00
ItemBigFlower.h BlockHandler initialisation is a constant expression (#4891) 2020-09-20 13:50:52 +00:00
ItemBoat.h Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
ItemBottle.h Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
ItemBow.h Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
ItemBucket.h Properly deprecate more XYZ parameter'd functions (#5147) 2021-03-15 02:28:18 +00:00
ItemChest.h BlockHandler initialisation is a constant expression (#4891) 2020-09-20 13:50:52 +00:00
ItemCloth.h Moved source to src 2013-11-24 14:19:41 +00:00
ItemComparator.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemCookedFish.h Using Super. 2020-04-16 20:07:48 +00:00
ItemDoor.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemDye.h Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
ItemEmptyMap.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemEnchantingTable.h Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
ItemEndCrystal.h End crystal placement (#5112) 2021-01-22 17:06:26 +00:00
ItemEyeOfEnder.h Added end portal and enchanting table block entities 2020-09-20 01:40:20 +01:00
ItemFishingRod.h Warnings improvements 2020-12-18 21:03:40 +00:00
ItemFood.h Using Super. 2020-04-16 20:07:48 +00:00
ItemFoodSeeds.h Using Super. 2020-04-16 20:07:48 +00:00
ItemGoldenApple.h Using Super. 2020-04-16 20:07:48 +00:00
ItemHandler.cpp Basic elytra flight (#5124) 2021-04-03 18:45:20 +01:00
ItemHandler.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemHoe.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemItemFrame.h Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
ItemLeaves.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemLighter.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
ItemLilypad.h Lilypads: add missing boundary check 2020-11-28 20:48:53 +00:00
ItemMap.h Added override specifiers to overridden functions. 2021-04-12 14:09:52 +01:00
ItemMilk.h Using Super. 2020-04-16 20:07:48 +00:00
ItemMinecart.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemMobHead.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
ItemNetherWart.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemPainting.h Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
ItemPickaxe.h Using Super. 2020-04-16 20:07:48 +00:00
ItemPoisonousPotato.h Using Super. 2020-04-16 20:07:48 +00:00
ItemPotion.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemPumpkin.h Fixed snow golems and added documentation to damage type and added damage type for damage from environment to mobs (#4877) 2020-09-17 18:06:41 +00:00
ItemRawChicken.h Using Super. 2020-04-16 20:07:48 +00:00
ItemRawFish.h Using Super. 2020-04-16 20:07:48 +00:00
ItemRedstoneDust.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemRedstoneRepeater.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemRottenFlesh.h Using Super. 2020-04-16 20:07:48 +00:00
ItemSapling.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemSeeds.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemShears.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemShovel.h Using Super. 2020-04-16 20:07:48 +00:00
ItemSign.h BlockHandler initialisation is a constant expression (#4891) 2020-09-20 13:50:52 +00:00
ItemSlab.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemSoup.h Using Super. 2020-04-16 20:07:48 +00:00
ItemSpawnEgg.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ItemSpiderEye.h Using Super. 2020-04-16 20:07:48 +00:00
ItemSword.h Using Super. 2020-04-16 20:07:48 +00:00
ItemThrowable.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
SimplePlaceableItemHandler.h SimplePlaceableItemHandler style 2020-07-14 18:28:06 +01:00