56d9943b0d
Nuke Block->meta, split into variant and state properties, lots of cleanup
...
This is a major change to the way block metadata is handled within the PM core. This separates variant metadata (which really ought to be part of the ID) from state metadata, and in a couple of cases flattens separate states of blocks together.
The result of this is that invalid variants can be much more easily detected, and additionally state handling is much cleaner since meta is only needed at the serialize layer instead of throughout the code.
2018-09-21 19:28:10 +01:00
f7f06c993d
Make block constructors not write to this->meta directly
2018-09-16 14:10:40 +01:00
05af87e1d4
Strip empty lines at the end of classes
2018-06-11 13:19:23 +01:00
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
0afe20c382
Remove redundant overridden meta property from Air
2017-11-30 11:10:07 +00:00
15d6fd86e2
Added basic support for blocks with multiple AABBs, fixed stairs ( #1303 )
2017-10-12 16:29:24 +01:00
d8b1757ebc
added some nullable and void typehints to Block API
2017-10-11 18:45:40 +01:00
1b5fed983b
Revert "Fixed slab placement, close #145 ", reopen #145 , close #1314
...
This reverts commit f2ff0198cc
.
2017-09-21 14:41:18 +01:00
eeedcf7332
Refactor Block->getResistance() -> Block->getBlastResistance() and added some documentation
2017-08-20 13:25:43 +01:00
f2ff0198cc
Fixed slab placement, close #145
2017-08-20 10:52:07 +01:00
83af4dcd59
Block API typehints
2017-08-17 13:50:19 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
61d354a4ea
Block constructor mass-replace to fix #963 and related issues
2017-06-05 10:02:27 +01:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
f3c46b12c5
Block breaking part 1
2015-07-27 20:31:55 +02:00
ac4194eb3f
Added lily pad, checked some bounding boxes
2015-06-05 13:58:59 +02:00
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
a0d4bff385
Block creating and property handling rewrite, part1
2014-12-07 01:53:27 +01:00
049103ab7a
Improved Block selection and construction performance
2014-08-25 16:39:47 +02:00
c47e359262
Updated blocks bounding boxes
2014-08-24 16:30:56 +02:00
214dcef1ea
Improved Air block collision check
2014-08-24 15:55:34 +02:00
8d40f843cf
MainLogger can now have debug level disabled
2014-05-29 00:08:02 +02:00
03d7127e33
Finally, physics
2014-05-25 18:14:01 +02:00
4f2856dc09
Added base physics
2014-05-25 12:31:00 +02:00
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00