Dylan K. Taylor
23752548fe
Address several LevelDB related crashdumps in the crash archive
2017-08-30 15:42:31 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
eebc52e00b
Added API method Entity->isClosed() and made Entity->closed protected
2017-08-16 19:30:23 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
30c5487f94
Drastically improved performance of basic chunk sky-light population
...
back 2 commits: 53ms per chunk
back 1 commit: 27ms per chunk
this commit: 3ms per chunk
(on my machine, of course)
2017-07-08 17:13:22 +01:00
Dylan K. Taylor
728851594b
Improved performance of basic chunk sky-light population
...
No need to recalculate this 256 times
2017-07-08 13:37:45 +01:00
Dylan K. Taylor
70bd9afd37
Updated leveldb implementation to support MCPE 1.1 worlds
2017-06-30 09:11:26 +01:00
Dylan K. Taylor
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
Dylan K. Taylor
e11f1e94e9
Cleaned up SubChunk implementation
2017-06-19 15:40:31 +01:00
Dylan K. Taylor
75863e2a44
OCD commit
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
8779259734
Stop spawning entities to players twice
...
This will be done when the chunk is sent to the player anyway.
2017-05-29 15:57:05 +01:00
Dylan K. Taylor
7a2ed232cc
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-24 13:56:19 +01:00
Dylan K. Taylor
559504225a
Throw an exception before calling base entity constructor if skin is not set or invalid, close #835 ( #855 )
2017-04-24 09:50:55 +01:00
Dylan K. Taylor
b7b7a93e4e
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-18 14:52:06 +01:00
Dylan K. Taylor
eefa8abaf2
Throw exceptions if something attempts to add a closed Tile or Entity to a chunk
2017-04-18 14:45:33 +01:00
Dylan K. Taylor
dab73d8950
Implemented sky light generation-time population and updating, obsolete and close #160
2017-04-18 13:05:01 +01:00
Dylan K. Taylor
f3ab45e7d5
Merged in 1.0.6 changes, added autogenerated data for 1.1.0.3 (doesn't work yet) and deliberately made the same merge error as Mojang
2017-04-14 13:00:43 +01:00
Dylan K. Taylor
1c3d89cfef
Fixed lighting issues with subchunks containing no blocks
...
A subchunk with no blocks is not necessarily empty.
2017-03-29 11:34:43 +01:00
Dylan K. Taylor
c21197ef17
Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
...
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk
API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
Dylan K. Taylor
06de85fd33
Revert "Fix entities missing in imported leveldb worlds", fixed entities missing after restart in anything OTHER than LevelDB
...
🤦 I should test this stuff more
This reverts commit ffadc34691aa827a3640fd0908b9fce585d68bbe.
2017-02-11 19:22:59 +00:00
Dylan K. Taylor
ffadc34691
Fix entities missing in imported leveldb worlds
2017-02-11 11:15:15 +00:00
Dylan K. Taylor
bcf049a660
Remove obsolete methods from Chunk
2017-01-15 18:03:40 +00:00
Dylan K. Taylor
8ba0b49022
Initial working R/W of 0.16 + 1.0 worlds, highly unstable
2017-01-15 17:26:20 +00:00
Dylan K. Taylor
b28e38ab26
Move some exceptions out of utils into their relevant namespaces, move some Chunk methods to ChunkUtils for I/O, refactor "colour" -> "color"
2017-01-15 11:31:12 +00:00
Dylan K. Taylor
946d301bc7
Fix lighting population, fix lighting issues when read by vanilla Minecraft
2017-01-13 11:33:55 +00:00
Dylan K. Taylor
aaf549a469
Docs for Chunk
2017-01-06 17:57:00 +00:00
Dylan K. Taylor
ad0553fbf8
Bump to API 3.0.0-ALPHA2 - READ DESCRIPTION!
...
Refactored level\format\generic\GenericChunk -> level\format\Chunk.
Re-added support for async chunk sending
Refactored most Level IO into new namespaces for more organisation
Removed LevelDB loader completely (will be re-added at a later date)
2017-01-06 17:13:45 +00:00
Dylan K. Taylor
d8908676ac
Refactor GenericChunk::fastSerialize() to be non-static, fix some unbelievable bugs, clean up some leftovers
2017-01-05 17:04:02 +00:00
Dylan K. Taylor
1cb96d24ce
Some fixes, thanks PhpStorm
2017-01-04 11:29:24 +00:00
Dylan K. Taylor
69061ba4ad
Removed the need for subchunks to know their Y coordinates
2017-01-01 14:12:58 +00:00
Dylan K. Taylor
6ea45c5c4a
Formatting and doc comments, overall useless commit
2016-12-12 14:25:42 +00:00
Dylan K. Taylor
aafe0c4f69
Remove biome colours and fix biome id arrays
2016-12-04 15:12:23 +00:00
Dylan K. Taylor
ecabe945e6
Changes for more performance, fixed some crashes and hacked out dodgy light population
2016-11-29 14:46:48 +00:00
Dylan K. Taylor
15f7cfb4f7
Add missing return value, fix blocks vanishing when placed
2016-11-27 21:57:59 +00:00
Dylan K. Taylor
4c49db6036
New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
...
Terrible performance, needs profiling. TODO: fix this.
2016-11-27 21:57:59 +00:00
Shoghi Cervantes
db7222976e
Code cleanup
2014-08-21 17:26:41 +02:00
Shoghi Cervantes
016b08ecf2
Added block order detection, added support for non-sectioned level formats
2014-07-30 12:57:00 +02:00
Shoghi Cervantes
cbaeec54ff
Added biomeIds and biomeColors to Anvil format
2014-06-13 20:04:07 +02:00
Shoghi Cervantes
fa50cbf4b3
Working Threaded Generation
2014-06-10 20:45:09 +02:00
Shoghi Cervantes
115b4cf4ac
Updated Levels :D
2014-06-09 11:35:52 +02:00
Shoghi Cervantes
920e2a7c7e
Merge branch 'Level-Rewrite'
2014-06-07 23:33:49 +02:00
Shoghi Cervantes
53749483c3
Implemented new Inventory windows on Player, Chest and Furnace
2014-05-23 20:53:06 +02:00
Shoghi Cervantes
387677e957
Level rewrite middle step
2014-05-22 17:53:56 +02:00
Shoghi Cervantes
c1546aac9c
Updated Position to use Weak / strong references for Level objects
2014-05-22 04:14:06 +02:00
Shoghi Cervantes
aa1de79337
New Chunk objects / structure, Anvil region loader [WiP]
2014-04-10 05:05:36 +02:00
Shoghi Cervantes
c0de004472
Moved binary methods from Utils to Binary
2014-04-07 13:52:01 +02:00