Dylan K. Taylor
a5764b3ae9
populate missing array value types in level namespace
2020-01-30 21:01:59 +00:00
Dylan K. Taylor
f624871b3f
strip extra blank lines (php-cs-fixer)
2020-01-22 14:50:29 +00:00
Dylan K. Taylor
c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00
Dylan K. Taylor
f714ed6e90
Generator: fixed incorrect negative seed parsing in convertSeed()
2019-07-05 19:20:21 +01:00
Dylan K. Taylor
331ae5498f
Crash the generator when encountering invalid presets
...
this is a partial fix for #2717 , but still not ideal because it'll spam whenever a chunk is attempted to be generated. However, fixing this properly requires potentially breaking API changes.
2019-01-30 12:29:04 +00:00
Dylan K. Taylor
4b9a142a5d
Import global functions and constants for enhanced performance
...
This is better for performance because these then don't need to be reevaluated every time they are called.
When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.
However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
Dylan K. Taylor
8fca7cc68d
Apply some typehints to generators
2018-06-07 20:22:35 +01:00
Dylan K. Taylor
3c9af5cd6d
Generator: small reduction of code duplication
2018-06-07 19:49:51 +01:00
Dylan K. Taylor
996935e9b2
Cleaned up level seed handling
2018-06-07 19:39:24 +01:00
Dylan K. Taylor
5eec683110
Generator: Moved generator registering things to a separate GeneratorManager class
...
this isolates the concerns of the Generator class, and also removes cyclic dependencies between the Generator class and its descendents.
2018-06-07 13:48:01 +01:00
Dylan K. Taylor
0bca3cd481
Generator: Move static noise functions to Noise instance methods
2018-06-07 13:40:10 +01:00
Dylan K. Taylor
c493d0e6ac
Level: Stop unnecessarily initializing the generator on the main thread
...
this is just slowing down startup times for no good reason.
2018-05-31 10:22:44 +01:00
Dylan K. Taylor
06af742bef
wtf
2018-03-01 09:30:50 +00:00
Dylan K. Taylor
d4eba3f4b1
Moved some things out of Server to appropriate init() functions
2018-03-01 09:18:40 +00:00
Dylan K. Taylor
48dc1c38f7
Generator: fixed misuse of InvalidArgumentCountException
2018-01-27 12:46:09 +00:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Sandertv
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08: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
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
Shoghi Cervantes
cf3d8f449e
Added some asserts
2015-09-27 19:48:42 +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
Alejandro Liu
bdf069ebe1
Added a getGeneratorList
2015-04-27 01:18:04 +02:00
Shoghi Cervantes
d5601b0c9f
Generator works!
2015-03-15 16:40:18 +01:00
Shoghi Cervantes
b0f8c14640
Added Terminal class, Improved normal generator speed
2015-03-15 00:15:24 +01:00
Shoghi Cervantes
a893174473
Second biome generator iteration
2015-01-08 01:05:23 +01:00
Shoghi Cervantes
a76be6cf38
First biome based generator iteration
2015-01-07 04:07:11 +01:00
Shoghi Cervantes
d312d2a143
Possible fix for #2046 , removed embedded class names
2014-09-19 09:44:58 +02:00
Shoghi Cervantes
26ec562fbf
Added worlds directive to pocketmine.yml to load extra worlds or use a plugin-provided generator
2014-08-01 12:24:08 +02:00
Shoghi Cervantes
b6ef52e89c
Updated Normal generator
2014-06-11 00:29:01 +02:00
Shoghi Cervantes
109b6dbf44
Updated to v0.9.0 build 2, now using Anvil worlds
2014-06-11 00:06:46 +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
6cbd39de9b
Added Inventory interfaces and types, updated long array() to []
2014-05-22 18:59:16 +02:00
Shoghi Cervantes
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00