130 Commits

Author SHA1 Message Date
Dylan K. Taylor
c9fdb66c78 Made flat-world generation faster and less stupid
No need to set blocks which are obviously already going to be air >_>
2017-07-10 18:14:13 +01:00
Dylan K. Taylor
0f79b19fdc Removed masks for Y coordinates, fixed bugs related to out-of-bounds coordinates, fixed #914 (#915) 2017-06-21 10:55:38 +01:00
Dylan K. Taylor
8fc38c36f9 Fixed some derp Vector3 aliases 2017-06-16 13:48:53 +01:00
Dylan K. Taylor
4a7abb7033 Fix flat worlds crashing when generating 2017-06-08 13:47:13 +01:00
Dylan K. Taylor
51b0673b4b Bite the bullet and enable strict types on everything 2017-06-07 12:53:16 +01:00
Dylan K. Taylor
179210aa27 Merge branch 'api3/network' into api3/network-mcpe-1.1 2017-04-21 22:50:14 +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
Sandertv
1c7773c5f1 Visibility keyword before final or abstract keyword. (#814) 2017-04-13 20:58:53 +08:00
Dylan K. Taylor
f98a964cdc Fixed and silenced some inspections 2017-02-23 15:17:28 +00: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
Sandertv
d430ad50be Fixed wrong temperature and temperature -> rainfall (#347) 2017-02-11 20:15:22 +00:00
Dylan K. Taylor
0114cb8399 Better vanilla layers support (no meta, MCPE doesn't support it) 2017-01-15 17:26:21 +00:00
Dylan K. Taylor
9004417456 Fixed file headers (#255) 2017-01-13 16:57:05 +00:00
Dylan K. Taylor
8f797442b3 Merge branch 'master' into mcpe-1.0 2017-01-10 10:55:05 +00:00
Dylan K. Taylor
b566c4e609 Fix Normal generator logic fail 2017-01-09 22:27:35 +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
598e7aac8f More PhpStorm inspections, import cleanup 2017-01-04 14:55:11 +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
ce289cbe25 Merge branch 'master' into 0.17-chunks 2016-12-01 17:50:12 +00:00
Dylan K. Taylor
d6629d6843 More ?? (#131)
* More ??

* fix undefined variable
2016-11-30 10:07:37 +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
SOFe
58ff381557 PhpStorm automated formatting (#11)
* PhpStorm reformatting

* Tuned PhpStorm reformatting

* Improved ItemIds and BlockIds formatting

* Tuned more PhpStorm reformatting

* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
4133f98b23
Updated a few tabs, updated SPL submodule 2016-10-03 01:59:06 +08:00
SOF3
e913b16804
Fixed some lines indented with 4 spaces rather than tabs 2016-10-03 00:58:34 +08:00
SOF3
6fc435da0e
Imports rearrangement 2016-10-03 00:43:46 +08:00
Intyre
a6cd526e60
PHP7 to master 2016-02-21 12:47:30 +01:00
Dongjoon Hyun
302fb9e65e Add @throws docs.
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
2016-02-17 14:22:47 -08:00
Intyre
a2734f6dc0
Merged master into php7 to support 0.13.1 2016-01-22 17:36:45 +01:00
Intyre
9ff58f6ab3
Merge branch 'patch-1' of https://github.com/TrinityDevelopers/PocketMine-MP into TrinityDevelopers-patch-1 2015-12-20 00:31:52 +01:00
TrinityDevelopers
cbed8d40ff Fix a mispelled "new" call 2015-11-05 17:11:42 -06:00
Shoghi Cervantes
cf3d8f449e Added some asserts 2015-09-27 19:48:42 +02:00
Shoghi Cervantes
0bcf639a98 Changed how exceptions work and are logged, throw proper exceptions on tasks 2015-09-18 12:03:24 +02:00
Shoghi Cervantes
534b988a1c Added basic Nether generator 2015-08-09 00:38:23 +02:00
Shoghi Cervantes
3e2cce3c2c use cleanup 2015-08-07 21:26:24 +02:00
Shoghi Cervantes
cbb1c55a06
Improved biome generation, get grass color from gradient interpolation, improved performance of generation, try to recreate grass colors from imported chunks, closes #2845, closes #1792 2015-06-07 15:17:02 +02:00
Shoghi Cervantes
c578898aa4
Moved light population to an async task when needed, improved empty chunks 2015-05-28 23:34:07 +02:00
Shoghi Cervantes
b1edfd7631 Improved Falling blocks physics, entity kill, chunk unserialize, fixed flat generator color, fixed nbt tags __toString(), fixed explosion offsets, fixed increased player interaction range in creative 2015-05-13 12:18:59 +02:00
Shoghi Cervantes
aa38a4885f
Fixed some issues with world generation and not creating chunks, closes #3008 2015-05-11 23:53:01 +02:00
Shoghi Cervantes
925b0c1b07
Fixed empty chunks on generation, closes #2998 2015-05-10 13:18:39 +02:00
Shoghi Cervantes
db409851e9
World generation is timed by type and chunks can be created on the fly 2015-05-09 19:03:41 +02:00
Shoghi Cervantes
fb03df3d06 Calculate skylight on chunk population 2015-05-06 16:57:49 +02:00
Shoghi Cervantes
d4b2e3d1b7
Improved heightmap generation 2015-04-29 23:19:27 +02:00
Alejandro Liu
bdf069ebe1 Added a getGeneratorList 2015-04-27 01:18:04 +02:00
Shoghi Cervantes
1578fc3ddb Improved world generation manager, UUIDs (some work for future usage) 2015-04-21 19:54:16 +02:00
Shoghi Cervantes
7ee21f6254
Try to clean chunks on other threads 2015-04-15 22:14:51 +02:00
Shoghi Cervantes
fc2e4ddc63
Fixed long trunk generation 2015-04-15 20:47:18 +02:00
Shoghi Cervantes
79adbdeafe Fixed trees not generating trunk 2015-04-15 11:04:00 +02:00
Shoghi Cervantes
0a85ad0d1f
Improved trees, improved inventory transactions, improved snowball/bow usage 2015-03-28 16:59:15 +01:00
Shoghi Cervantes
47de616ac5
Fixed commands, added level automatic tick delay, improved biome gradient 2015-03-28 01:26:06 +01:00