summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-7/+3
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx122020-11-231-46/+46
| | | | | | | | | | | * added new monster types to enum added string <-> enum conversion in namespace serializer added loading functions added to saving * renamed zombie pigman to zombified piglins in enum Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Add beam target, configurable base visibility to Ender Crystals (#5010)12xx122020-10-291-0/+10
| | | | | * Fixes #4990 Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Adding more customize options to mob spawners and improving the way to look for surrounding entities (#4955)12xx122020-10-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added nearly any customize option * fixed unnecessary diff added comments * removed unnecessary const qualifier * fixed build * changed to ForEachEntityInBox * added docs * updated lua api description * checkstyle * added changes suggested by @peterbell10 And now the player may break the server by setting ridiculous ranges * updated docs changed cast to static cast * fixed clang * fixed clang on WSSAnvil.cpp Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Fixing Mob spawner behaviour (#4930)12xx122020-09-271-1/+0
| | | | | | | | | | | | | | | | | | | * fixed mob spawner failure (whoopsie in the BlockEntity.GetChunkZ()) Style * fixed spawning behaviour * fixed saving entity type saving * checkstyle * removed debug log * removed short saving * Style Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Added end portal and enchanting table block entities12xx122020-09-201-19/+47
|
* Use pitch lookup in noteblock block entity (#4826)12xx122020-09-051-1/+1
| | | | | | | - Removed the calculation in the noteblock block entity I did the calculation in python if anyone is interested where the numbers are from Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Save enderchest block entities to storageTiger Wang2020-08-281-1/+13
| | | | | + Add EnderChest saving, as Vanilla does - Remove CreateBlockEntities. Storage should save & load everything so looping over chunk data is not needed
* Oops, remember to save your files!Alexander Harkness2020-04-101-6/+0
|
* Add Zombie VillagersBond-0092020-04-101-4/+15
|
* Implement wither skeletons (#4563)Mat2020-04-041-36/+34
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* NBTChunkSerializer: Cleaned up interface.Mattes D2019-09-241-770/+878
| | | | | | Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+7
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-49/+49
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Store Health as a float (#4073)Fabian2017-11-221-1/+1
| | | | | | | | | | | | | | | | | | * Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
* Fix switch warnings (#4013)peterbell102017-09-141-30/+34
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Implement anvil chunk sparsingpeterbell102017-08-261-3/+3
|
* Add cUUID class (#3871)peterbell102017-08-251-5/+6
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-2/+36
|
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-181-4/+11
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Added basic ocelot behavior (#3829)Bond-0092017-07-121-1/+12
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+14
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Exported boatLukas Pioch2017-05-241-0/+1
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Corrected brewingstand and added support for fuelLukas Pioch2017-05-081-0/+1
|
* Fixed TrappedChest saving. (#3423)Mattes D2016-11-071-1/+1
| | | Vanilla uses "Chest" in NBT for trapped chests.
* Fixed type-casting-related warnings.Mattes D2016-08-241-2/+2
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-8/+8
|
* Changed the format of the MobHead data to allow MobHeads working on MInecraft 1.8bibo382016-01-111-1/+14
| | | | | | The NBT format now carries the texture data and transmit it to the client. See: http://minecraft.gamepedia.com/Head#Block_entity Related to #2674
* Test for correct coordinates when fishingGargaj2015-12-101-0/+1
| | | | Fun fact: this was able to actually deadlock the server depending on where you were standing :)
* changed mob age from char to intJulian Laubstein2015-11-161-10/+10
|
* Implemented brewingLukas Pioch2015-11-031-0/+17
|
* Namechange to CuberiteMattes D2015-09-251-1/+1
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-75/+75
|
* Added Rabbit Metadata values.bibo382015-07-171-43/+48
| | | | | Added the Rabbit Types and the MoreCarrotTicks value. Types are selected randomly on creation. Fixes #1867
* Support ageable mobsHallucino2015-07-141-5/+28
| | | | Move ageable stuff in Monster directly
* cPainting saving implementedTiger Wang2015-03-141-14/+16
| | | | Additionally, it now inherits from cHangingEntity.
* Fixed confusion over Item Frame directionsTiger Wang2015-03-131-18/+4
|
* Added RabbitsMasy982014-12-201-0/+2
|
* Added Entity GuardianMasy982014-12-181-0/+2
|
* Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner2014-11-291-1/+1
|
* Finished mob spawner implementation.Howaner2014-11-181-2/+3
|
* Merge branch 'master' into MobSpawnerHowaner2014-11-181-14/+36
|\ | | | | | | | | Conflicts: MCServer/Plugins/Core
| * Fixed compile (typos).Alexander Harkness2014-10-271-2/+2
| |
| * Another one.#Alexander Harkness2014-10-271-0/+22
| |
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
| |
| * Properly exported cItemFrame and cHangingEntity to Lua.Mattes D2014-10-211-12/+12
| |
| * Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-271-45/+75
| |\ | | | | | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * | Implemented Chest MinecartsTiger Wang2014-09-131-1/+1
| | |
* | | Merge branch 'master' into MobSpawnerHowaner2014-09-261-45/+75
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| * | Merge pull request #1419 from mc-server/redstoneTestsworktycho2014-09-261-41/+41
| |\ \ | | | | | | | | Added test mocking to IncrementalRedstoneSimulator
| | * \ Merge branch 'master' into redstoneTestsTycho2014-09-251-1/+31
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Mobs/Monster.h
| | * | | Added first test to show the object can be createdTycho2014-09-171-41/+41
| | | |/ | | |/|
| * | | Anvil: Arrow Tile tags are a short in VanillaHowaner2014-09-251-3/+3
| | |/ | |/|
| * | derpHowaner2014-09-241-4/+4
| | |
| * | Don't create two entity lists.Howaner2014-09-241-0/+12
| | |
| * | Merge branch 'master' into WorldLoaderHowaner2014-09-241-1/+1
| |\ \
| | * | Anvil: Wolf collar color is a byte in Vanilla.madmaxoft2014-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | Kept the old Int reading for compatibility reasons. Ref.: #1448
| * | | MCServer world compatiblity with vanilla and mcedit.Howaner2014-09-231-0/+16
| |/ /
| * / Added CustomName saving.Howaner2014-09-021-0/+2
| |/
* / Implemented mob spawner.Howaner2014-09-191-0/+15
|/
* Removed unused codeTiger Wang2014-08-291-1/+0
|
* Anvil: Wolf owner not saved if not present.madmaxoft2014-08-041-2/+8
|
* Wolf uses UUID for owner.madmaxoft2014-08-031-4/+6
| | | | Fixes #1277.
* Renamed functions and added beacon json saving.Howaner2014-07-311-2/+2
|
* Added beacon load/save.Howaner2014-07-301-0/+19
|
* Slight cleanup after portalsTiger Wang2014-07-291-1/+0
|
* Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-1/+2
|\ | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * NBTChunkSerializer.cpp: Added break after serializing the splash potionarchshift2014-07-201-0/+1
| |
| * Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift2014-07-191-1/+1
| |
* | Merge branch 'master' into portalsTiger Wang2014-07-181-30/+40
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
| |
| * Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
| * Restructured cSplashPotionEntity code.madmaxoft2014-07-151-1/+1
| | | | | | | | | | The callback doesn't need declaration in the header. Renamed PotionName to PotionParticleType.
| * Merge branch 'master' into potionsmadmaxoft2014-07-151-15/+17
| |\
| | * Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-131-15/+17
| | |\ | | | | | | | | Implemented trapped chests & others
| | | * cNBTChunkSerializer: Fixed alignment.madmaxoft2014-07-121-14/+14
| | | |
| | | * Suggestions and bug fixTiger Wang2014-07-121-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
| | | * SuggestionsTiger Wang2014-07-111-4/+4
| | | |
| | | * Made things consistentTiger Wang2014-07-081-2/+4
| | | |
| | | * Implemented trapped chests & othersTiger Wang2014-07-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
| * | | Added splash potions to NBT serialization and retrievalarchshift2014-07-121-0/+11
| |/ /
| * | Merge pull request #1135 from mc-server/fixesTiger Wang2014-07-091-16/+12
| |\ \ | | |/ | |/| Fixes to projectiles and the undead
| | * Various fixedTiger Wang2014-07-041-7/+4
| | | | | | | | | | | | | | | * Fixed potential invalid pointer dereferencing, fixes #1117 * Fixed ender pearls not being loaded properly
| | * SuggestionsTiger Wang2014-07-021-9/+8
| | |
| * | Removed unneeded codeTiger Wang2014-06-301-14/+1
| | |
| * | Properly implemented enderchestsTiger Wang2014-06-291-0/+14
| | |
* | | Merge branch 'master' of https://github.com/mc-server/MCServer into portalsTiger Wang2014-06-241-2/+1
|\| |
| * | Add entity health saving.Howaner2014-06-241-2/+1
| |/
* | Merge branch 'master' into portalsTiger Wang2014-06-211-6/+1
|\| | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Entity.h src/Entities/Player.h
| * Merge branch 'master' into GlobalFixesHowaner2014-06-171-2/+1
| |\
| * | The motion is already set in AddBasicEntity()Howaner2014-06-171-5/+0
| | |
| * | Code improvementsHowaner2014-05-281-1/+0
| | |
| * | Add throw sound and fix arrow server crash.Howaner2014-05-281-0/+1
| | |
* | | Health of monsters is now savedTiger Wang2014-06-041-0/+1
| |/ |/|
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-241-17/+27
|\|
| * More switch warnings.archshift2014-05-121-0/+7
| |
| * Fixed a few more switch warnings.archshift2014-05-121-17/+20
| |
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-101-7/+32
|\| | | | | | | | | Conflicts: src/Chunk.h
| * Merge pull request #989 from Howaner/AnvilMattes D2014-05-071-6/+31
| |\ | | | | | | Add repair cost to cItem, add custom name to NBTChunkSerializer and fix ...
| | * Change m_RepairCost to int.Howaner2014-05-071-1/+1
| | |
| | * Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-6/+31
| | |
| * | Fix MagmaCube save.Howaner2014-05-071-1/+1
| |/
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-011-6/+6
|\|
| * Merge pull request #940 from Howaner/GlobalFixesMattes D2014-04-281-1/+1
| |\ | | | | | | Add entity invulnerable
| | * Revert "Changed the old invulnerable methods from the wither to the new."Howaner2014-04-281-8/+1
| | | | | | | | | This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
| | * Changed the old invulnerable methods from the wither to the new.Howaner2014-04-261-1/+8
| | |
| | * FixesHowaner2014-04-261-1/+1
| | |
| * | Fixed projectile source filenames, indentationsarchshift2014-04-281-1/+1
| | |
| * | Moved cArrowEntity out of ProjectileEntity.harchshift2014-04-271-1/+1
| | |
| * | Further refactored, Reverted Minecart changearchshift2014-04-261-4/+4
| | | | | | | | | | | | Other small changes.
| * | Small changes; warning fixing.archshift2014-04-251-4/+4
| |/
* | Merge branch 'master' into chunksparsing/structsTycho2014-04-271-1/+1
|\| | | | | | | | | | | Conflicts: src/Chunk.cpp src/Chunk.h
| * Fixed references to renamed files.archshift2014-04-241-1/+1
| |
* | Implemented Chunk Sparsing with segmentsTycho2014-04-261-2/+1
|/
* Merge pull request #833 from mc-server/EnderCrystalMattes D2014-03-251-0/+13
|\ | | | | Ender crystals
| * Ender crystalsandrew2014-03-251-0/+13
| |
* | Wither invulnerabilityandrew2014-03-241-1/+7
|/
* Merge branch 'master' into BlockEntitysHowaner2014-03-151-3/+11
|\
| * Merge pull request #768 from Howaner/BlockEntitysTiger Wang2014-03-091-1/+14
| |\ | | | | | | Add TNT load/save
| * \ Merge branch 'master' into ballisticmissilesTiger Wang2014-03-091-0/+15
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp
| * | | Implemented ballistic missiles (fireworks)Tiger Wang2014-02-271-3/+11
| | | | | | | | | | | | | | | | + Added fireworks
* | | | Add item frame saving.Howaner2014-03-151-2/+38
| | | |
* | | | Add health and age load to pickup's.Howaner2014-03-151-5/+5
| | | |
* | | | Add ExpOrb saving.Howaner2014-03-151-1/+16
| |_|/ |/| |
* | | Change TNT Fuse to ticksHowaner2014-03-081-1/+1
| | |
* | | Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner2014-03-081-1/+14
| |/ |/|
* | Add Flower PotsHowaner2014-03-071-0/+15
|/
* Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2014-02-231-0/+8
|
* Rename SkullEntity to MobHeadEntityHowaner2014-02-231-7/+7
|
* Add Skulls/HeadsHowaner2014-02-231-5/+21
|
* Merge branch 'master' into itemframesTiger Wang2014-02-181-0/+1
|\ | | | | | | | | | | Conflicts: src/Entities/Entity.h src/WorldStorage/NBTChunkSerializer.cpp
| * Implemented paintings, fixes #689Tiger Wang2014-02-181-0/+1
| | | | | | | | + Implemented paintings
* | Implemented item frames, a part of #689Tiger Wang2014-02-181-0/+1
|/ | | | | + Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
* Partial fix for #130Tiger Wang2014-02-031-0/+1
|
* Added saving of angry flag.Kirill Kirilenko2014-02-021-0/+1
|
* Fixed sitting tag.Kirill Kirilenko2014-02-021-1/+1
|
* Added saving of collar's color.Kirill Kirilenko2014-02-011-1/+2
|
* Fixes #606STRWarrior2014-01-301-2/+2
|
* Command block fixes 2andrew2014-01-231-9/+10
|
* Merge pull request #569 from worktycho/EnchantmentsFixMattes D2014-01-191-1/+2
|\ | | | | Enchantments fix
| * Switched EnchantmentSerilizer to namespaceTycho2014-01-191-1/+1
| |
| * Spilt Writing of Enchantments to seperate classTycho2014-01-191-1/+2
| | | | | | | | | | | | | | Created a new class cEnchantmentSerializer to serilize Enchantments to NBT. This breaks a dependecy chain between cChunkGenerator and cWorld. cEnchantmentSerializer is seperate from NBTWriter as it needs to access private members of cEnchantments so having it seperate reduces the spread of the frein modifier
* | Parse the MC|AdvCdm plugin messageandrew2014-01-181-1/+1
| |
* | Command block (de)serializationandrew2014-01-181-10/+27
|/
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
|
* Removed obsoleted functionsTiger Wang2014-01-161-1/+1
|
* Preliminary mobile entity savingTiger Wang2013-12-251-5/+133
| | | | | | | * Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+533