15538 Commits

Author SHA1 Message Date
dependabot[bot]
68e704bf97
Bump shivammathur/setup-php from 2.19.0 to 2.19.1 (#5098)
Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2.19.0 to 2.19.1.
- [Release notes](https://github.com/shivammathur/setup-php/releases)
- [Commits](https://github.com/shivammathur/setup-php/compare/2.19.0...2.19.1)

---
updated-dependencies:
- dependency-name: shivammathur/setup-php
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-04 15:15:17 +01:00
Dylan K. Taylor
afd37ca892
Fix PHPStan errors 2022-07-04 15:13:48 +01:00
Dylan K. Taylor
03b8077054
generate-block-serializer-consts: don't pollute the global namespace 2022-07-04 14:58:21 +01:00
Dylan K. Taylor
17abd50f69
Publish script used to generate BlockTypeNames, BlockStateNames and BlockStateStringValues 2022-07-04 14:56:50 +01:00
Dylan K. Taylor
2c33d8429e
tests: remove unnecessary Block::getName() override 2022-07-03 20:08:56 +01:00
Dylan K. Taylor
cbebb70af6
Planks: remove useless constructor 2022-07-03 19:58:04 +01:00
Dylan K. Taylor
6604d22ceb
BlockLegacyIdHelper: clean up code 2022-07-03 19:53:34 +01:00
Dylan K. Taylor
ce59228688
BlockLegacyMetadata: remove unused constants 2022-07-03 19:45:13 +01:00
Dylan K. Taylor
386c385a08
Updated BlockFactory consistency check 2022-07-03 19:07:45 +01:00
Dylan K. Taylor
dd615c775d
Added various blocks made from mangrove, crimson and warped wood 2022-07-03 19:01:34 +01:00
Dylan K. Taylor
6176f0d9df
Regenerate ItemTypeIds 2022-07-03 18:43:29 +01:00
Dylan K. Taylor
33eef99d1f
Added axis support for all-sided logs 2022-07-03 17:27:25 +01:00
Dylan K. Taylor
3e7d34c8ad
BlockFactory: remove TODO list
we're tracking this somewhere else now
2022-07-03 14:33:42 +01:00
Dylan K. Taylor
e302e5a85f
Implemented chiseled deepslate, chiseled nether brick and cracked nether brick 2022-07-03 03:04:06 +01:00
Dylan K. Taylor
4acf7aadbd
Added quartz bricks 2022-07-03 02:11:50 +01:00
Dylan K. Taylor
227a481473
generate-block-palette-spec: include blocks with no properties 2022-07-03 02:01:28 +01:00
Dylan K. Taylor
a3016abf53
Added polished deepslate block/slab/stair/wall 2022-07-03 02:00:43 +01:00
Dylan K. Taylor
89632f3514
Added deepslate, cobbled/tiles/bricks walls/slabs/stairs/cubes 2022-07-03 01:43:27 +01:00
Dylan K. Taylor
c7ba791ff8
Block: remove obsolete note from Block::isSameType() 2022-07-03 00:49:57 +01:00
Dylan K. Taylor
db9c7de35c
Remove obsolete shim items for Bed and Skull
now that the colour and skull type are included in the block type data, it's no longer necessary to maintain shim items to retain this information in the item data.
2022-07-03 00:47:42 +01:00
Dylan K. Taylor
017ebb9b47
Updated consistency check 2022-07-03 00:02:03 +01:00
Dylan K. Taylor
3f937605ac
Added calcite 2022-07-02 23:54:51 +01:00
Dylan K. Taylor
b818ed0d08
Regenerated TODO list 2022-07-02 23:17:46 +01:00
Dylan K. Taylor
0e0b858b69
Added raw copper, gold and iron blocks 2022-07-02 23:17:10 +01:00
Dylan K. Taylor
0d0296d535
Light block brightness can be changed by right-clicking on it 2022-07-02 22:48:10 +01:00
Dylan K. Taylor
2a0fade893
Implemented Light blocks 2022-07-02 22:39:11 +01:00
Dylan K. Taylor
30149c6ed4
wtf happened here ... 2022-07-02 22:06:47 +01:00
Dylan K. Taylor
c84033213f
Updated BlockFactory consistency check 2022-07-02 21:55:35 +01:00
Dylan K. Taylor
c4fc352db1
Remove empty line 2022-07-02 21:54:36 +01:00
Dylan K. Taylor
172214386a
Added a batch of simple blocks from 1.16 and 1.17 2022-07-02 21:53:59 +01:00
Dylan K. Taylor
b661c94915
StringToItemParser: added glazed_terracotta alias 2022-07-02 21:34:20 +01:00
Dylan K. Taylor
7750f9581a
BlockObjectToBlockStateSerializer: make adding stateless blocks less annoying 2022-07-02 21:03:25 +01:00
Dylan K. Taylor
451971b866
BlockObjectToBlockStateSerializer: make stairs less annoying to implement 2022-07-02 20:57:18 +01:00
Dylan K. Taylor
d49597fe5f
BlockStateToBlockObjectDeserializer: make stairs less annoying to implement 2022-07-02 20:51:31 +01:00
Dylan K. Taylor
bcdbb09c2c
Updated BlockFactory consistency check 2022-07-02 20:19:58 +01:00
Dylan K. Taylor
ff90c83d66
Implemented log stripping via axe right-click 2022-07-02 19:16:15 +01:00
Dylan K. Taylor
248eacd042
GlazedTerracotta: make colour dynamic, like all other coloured blocks
made possible by stripping out legacy mess
2022-07-02 18:30:23 +01:00
Dylan K. Taylor
7430e1fbc0
Coral: remove obsolete workaround 2022-07-02 17:51:48 +01:00
Dylan K. Taylor
b125d4d25f
Strip all remaining legacy item ID/meta stuff from blocks
the doors are now finally open, we can:
- make all the wood types dynamic
- fix glazed terracotta
- add all the new blocks

LET'S GOOOOOOOOOOOO
2022-07-02 17:48:11 +01:00
Dylan K. Taylor
323c563684
Break Block's dependence on ItemFactory, and item legacy IDs
let's GOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
2022-07-02 17:29:28 +01:00
Dylan K. Taylor
9740891a2f
Move BlockLegacyMetadata to pocketmine\data package 2022-07-02 17:01:10 +01:00
Dylan K. Taylor
b5914f4587
phpstorm ... 2022-07-02 16:58:28 +01:00
Dylan K. Taylor
3792ef5a50
Move blockstate data runtime serialization to a more appropriate package 2022-07-02 16:48:41 +01:00
Dylan K. Taylor
7994da07be
Crafting recipe network serialization no longer depends on PM's internal legacy metadata
WOOOOOOOOOOOOOOOOOOOOOOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!
2022-07-02 16:37:43 +01:00
Dylan K. Taylor
8858b16a25
Fucking CS again 2022-06-30 20:18:25 +01:00
Dylan K. Taylor
a64adbfffe
Fix PHPStan errors 2022-06-30 20:16:55 +01:00
Dylan K. Taylor
ba079bd9aa
Avoid implicit ItemFactory reliance for blocks with special items
this hasn't yet been addressed for signs, since they are a bit of a pain in the ass.
2022-06-30 20:00:41 +01:00
Dylan K. Taylor
db2b523762
Item is no longer JsonSerializable
before anyone starts screaming:

1) it's easy to create your own wrapper that converts items to arrays
2) there is no longer a single standard way to encode items.
3) the way that item serialization now works requires an ItemSerializer, which, barring singleton use, must be dependency-injected. Since there's no way to inject dependencies into jsonSerialize(), this means that its behaviour cannot be customized.
2022-06-30 19:16:49 +01:00
Dylan K. Taylor
4bd087fc83
Fix CS 2022-06-30 19:09:49 +01:00
Dylan K. Taylor
af8f2c47f3
ShulkerBoxInventory: avoid usage of legacy ItemIds 2022-06-30 19:03:07 +01:00