Dylan K. Taylor 874fdf5adb
ItemBlock: reference blocks directly (take 2)
This was first attempted in f64dc01bd1c14ff3f79bd6c18d0c337dbc0e87e0, but reverted, since I hadn't considered how to handle stripping state data from blocks.

This removes the abusable API RuntimeBlockStateRegistry::fromTypeId() and related methods. These were only used to allow ItemBlocks to magically start referencing other blocks if the blocks were overridden by a plugin, but this was never a well-supported use-case anyway.

Instead of relying on RuntimeBlockStateRegistry, we remember the state that the block had during its constructor, and use that to normalize the non-item properties for asItem().

closes #5609
2023-04-13 12:44:54 +01:00
..
2022-07-06 14:57:07 +01:00
2022-07-24 00:14:17 +01:00
2022-12-19 15:22:09 +00:00
2022-07-20 16:12:58 +01:00
2022-12-22 15:22:04 +00:00
2022-07-20 20:19:36 +01:00
2022-09-29 21:50:15 +01:00
2022-07-05 21:43:47 +01:00
2022-07-02 17:51:48 +01:00
2022-06-30 19:09:49 +01:00
2022-07-09 20:40:18 +01:00
2022-07-05 21:43:47 +01:00
2022-07-23 16:12:17 +01:00
2022-07-14 16:47:55 +01:00
2022-07-05 21:43:47 +01:00
2023-01-13 17:48:56 +00:00
2022-07-20 16:12:58 +01:00
2022-07-09 20:18:22 +01:00
2022-07-23 16:12:17 +01:00
2022-07-05 21:43:47 +01:00
2023-01-04 20:10:46 +00:00
2022-07-06 14:57:07 +01:00
2022-07-19 20:28:12 +01:00
2022-07-06 23:01:17 +01:00
2022-06-30 19:09:49 +01:00
2023-01-12 21:34:44 +00:00