Dylan K. Taylor
cd5b81bdb9
ChunkManager: Remove getBlockIdAt()/setBlockIdAt()/getBlockDataAt()/setBlockDataAt(), add getBlockAt() and setBlockAt()
2018-12-04 22:27:00 +00:00
Dylan K. Taylor
98efd27543
Remove ability to set blockID and blockdata independently
...
This was the cause of many inconsistency and broken world bugs. In the future (once we switch to paletted chunks) this won't be possible anyway. For now, some temporary API is provided to allow modifying chunkdata directly, but it is required that **both** must be provided.
2018-11-22 16:53:22 +00:00
Dylan K. Taylor
5ce2d5e072
Clean up to Generator creation, remove getSeed() from ChunkManager interface
...
it's the generator's responsibility to know about the seed, not the chunkmanager's. This now reduces the complexity of implementing and using a chunkmanager.
2018-09-10 13:28:15 +01:00
Dylan K. Taylor
29fd26627e
Level: Change isInWorld signature to use ints instead of floats
...
this is only used in one place, where it's being given floats, and it's 10% faster to use int for this because it won't convert it.
It is also 25% faster to remove typehints and 60% faster to inline it. We really need a proper PHP preprocessor for inlining.
2018-05-18 11:01:13 +01:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
c8ed2406d7
Fix bad setChunk() documentation
2017-08-17 21:03:07 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +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
8919d4a372
Some refactoring to allow for light updates to be executed asynchronously
2017-06-17 17:38:47 +01:00
Dylan K. Taylor
75863e2a44
OCD commit
2017-06-07 12:54:12 +01: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
Intyre
eb00dee8a6
removed int return from getSeed
2016-02-22 13:03:27 +01:00
Shoghi Cervantes
3ffdb8e552
Removed @deprecated classes, methods and properties, added some type hints
2015-09-12 17:10:11 +02:00
Shoghi Cervantes
72c4c01542
Yay generation uses async tasks
2015-03-26 18:21:39 +01:00
Shoghi Cervantes
d5601b0c9f
Generator works!
2015-03-15 16:40:18 +01:00
Shoghi Cervantes
115b4cf4ac
Updated Levels :D
2014-06-09 11:35:52 +02:00