Dylan K. Taylor
a2543ff80d
Position: add getLevelNonNull()
...
this allows assuming that a position has a valid world in places where it's never expected to not be valid. Since this is the vast majority of usages, it eliminates a lot of possible null-pointer warnings given by static analysers.
TODO: Consider whether we can make Position->getLevel/World use this behaviour out of the box in the next major version.
2020-04-14 11:08:37 +01:00
Dylan K. Taylor
c38779f1fd
Block: fixed use of full meta as variant in several cases
...
fixes #2940
now I need to go to the bathroom and wash this off my hands ... I'd forgotten how nasty this code is
2019-05-27 18:04:25 +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
d1db27016e
s/facePos/clickVector/
...
clickVector better describes this
2017-10-27 19:05:26 +01:00
Dylan K. Taylor
716c1f29b4
Fixed slabs again
2017-10-24 10:23:07 +01:00
Dylan K. Taylor
d2dc49cd9c
Refactor Slab logic away from WoodenSlab, added StoneSlab2 and its double
2017-10-18 19:27:54 +01:00
Dylan K. Taylor
4950157f1d
How did this escape notice?
2017-08-16 13:08:30 +01:00
Dylan K. Taylor
6b7a382625
import cleanup and missing strict types declare
2017-08-07 15:42:46 +01:00
Dylan K. Taylor
561d8e7a39
Regenerated block/item id lists and refactored some names for consistency with MCPE
2017-08-04 12:17:24 +01:00
Dylan K. Taylor
21887b283f
Removed some copy-pasted code, fix leaves2 drops
2017-07-30 17:22:28 +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
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +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
94b79ac28a
Tool tier added to getDrops
2015-10-11 00:52:44 +02:00
willowmaster66
a3bce67d35
Updating blocks and items
...
Added new blocks/items and added constants to existing blocks/items for
clearer recipe making.
2015-09-18 22:17:24 +02:00
Shoghi Cervantes
0380e9009a
Added block break tool type, fixed falling sand, fixed duplicated jungle leaves
2015-07-27 20:31:55 +02:00
Shoghi Cervantes
26c9eed82e
Added all block hardness
2015-07-27 20:31:55 +02:00
Shoghi Cervantes
02ba9ffc16
Improved entity movement ySize offset
2015-04-08 22:09:06 +02:00
Shoghi Cervantes
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
Shoghi Cervantes
a98da3bab1
Renamed old getID() calls to getId()
2014-12-07 15:21:32 +01:00
Shoghi Cervantes
a0d4bff385
Block creating and property handling rewrite, part1
2014-12-07 01:53:27 +01:00
Shoghi Cervantes
8601405a88
Fixed CPU leak
2014-10-31 21:07:00 +01:00
Shoghi Cervantes
289bc56b4b
Blocks now save their bounding box, fixed entity block collision check
2014-10-29 15:43:23 +01:00
Shoghi Cervantes
7abf52e615
Implemented Vector3 List and AxisAlignedBB Pool to decrease object allocation
2014-10-27 15:39:20 +01:00
Shoghi Cervantes
1eec333501
Save block bounding boxes, improves block cache
2014-10-13 18:38:00 +02:00
Shoghi Cervantes
593b0497b0
Fixed #1750 cannot place slabs against blocks
2014-09-22 11:58:15 +02:00
Shoghi Cervantes
50b2f55583
Increased movement error range
2014-09-15 23:53:08 +02:00
Shoghi Cervantes
ac4b4b08fd
Fixed Level::setBlock() old calls
2014-09-05 11:00:13 +02:00
Shoghi Cervantes
3731e74696
Added Slab bounding box
2014-08-30 02:14:24 +02:00
Shoghi Cervantes
eab86f5f90
Replaced array() with []
2014-08-28 17:04:22 +02:00
Shoghi Cervantes
b064f1e71a
Removed collision check crash on Slab
2014-06-28 02:38:04 +02:00
Shoghi Cervantes
6cbd39de9b
Added Inventory interfaces and types, updated long array() to []
2014-05-22 18:59:16 +02:00
Shoghi Cervantes
0be679c9d5
Updated method names: getMetadata() & setMetadata() to getDamage() & setDamage() on Block and Item classes
2014-05-22 18:37:28 +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
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00