b36b65927c
BlockDataUpgrader: expose BlockIdMetaUpgrader via getter
2022-07-19 16:02:35 +01:00
afaf9dbc88
Rename LegacyBlockStateMapper -> BlockIdMetaUpgrader
...
this more accurately describes what it's used for.
2022-07-19 15:32:08 +01:00
b0a492c063
Move simple block (de)serializer registrations into their own functions
2022-07-18 18:47:30 +01:00
6d4279671e
A giant hack to cut down code needed for runtime block serialization by 50%
...
this also avoids repeated information and inconsistencies.
2022-07-18 18:25:41 +01:00
cf34f88a67
Make Block::decodeState() and encodeState() more codegen-friendly
2022-07-18 15:48:03 +01:00
b8d1b00985
phpstan fail very sad :(
2022-07-18 15:26:14 +01:00
8660dfe576
Generate traits for runtime enum serialization instead of helper classes
2022-07-18 15:16:33 +01:00
172bd9a129
...
2022-07-17 21:24:27 +01:00
012b668537
Avoid bogus assumptions about block and item NBT on tiles
2022-07-17 21:23:41 +01:00
4f2f9b4352
Block::readStateFromWorld() now returns the block object that should be used for the target position
...
this enables changing the block type completely if the situation calls for it.
2022-07-16 20:04:08 +01:00
b3f8b5ff37
Fix CS
2022-07-16 20:01:29 +01:00
81edb1bed4
GlassBottle: implement filling using API changes from 4afd3dcabf
...
closes #4827
2022-07-16 20:00:43 +01:00
d0ff6d2e36
Enable various types of interaction to return items to the player, without needing to have a bunch of boilerplate creative mode and held item checks
...
it became glaringly obvious that this was needed because of #4827 and #4868 .
this is further needed with the addition of cauldrons.
2022-07-16 19:50:33 +01:00
4afd3dcabf
Merge branch 'next-minor' into next-major
2022-07-16 15:11:19 +01:00
4e3964ffce
Armor: added clearCustomColor()
2022-07-16 15:10:07 +01:00
c7f5215a51
5.0.0-ALPHA3 is next
2022-07-14 22:54:29 +01:00
66f2116e57
Release 5.0.0-ALPHA2
5.0.0-ALPHA2
2022-07-14 22:54:28 +01:00
c15c59ae0d
changelog for 5.0.0-ALPHA2
...
[ci skip]
2022-07-14 22:52:07 +01:00
07786dc4bc
RuntimeDataWriter: fixed doc comment
2022-07-14 22:51:12 +01:00
259f44e57c
Merge branch 'next-minor' into next-major
2022-07-14 22:05:04 +01:00
93254523e6
Merge branch 'stable' into next-minor
2022-07-14 22:04:38 +01:00
2b61c025c2
Workaround items in blockentity NBT not being processed correctly in 1.19.10
...
closes #5154
this hack sends only the bare essential data to create the tiles in LevelChunkPacket,
and then separately sending the full tile data using BlockActorDataPacket afterwards.
This is necessary because the client doesn't handle items correctly in NBT when chunks are sent without using the SubChunkRequest system.
In 4.6 this is observed with incorrect items shown in item frames; in 5.0 it's seen with items simply not showing up at all (difference due to modernization of the serialization format in 5.0).
2022-07-14 21:54:01 +01:00
e5804df24b
Merge branch 'next-minor' into next-major
2022-07-14 20:59:13 +01:00
e00f8e3a32
Merge branch 'stable' into next-minor
2022-07-14 20:59:06 +01:00
c8320fe849
Merge branch 'next-minor' into next-major
2022-07-14 20:50:49 +01:00
e2855aadff
Simplify handling of broken transactions for crafting and friends
...
this allows stuff like smithing tables to work without needing any extra hacks.
Implementing enchanting or anvils would require some extra work, but I don't plan to implement those under the legacy transaction system anyway.
2022-07-14 20:50:06 +01:00
21ed5a450f
Updated BlockFactory consistency check
2022-07-14 20:42:16 +01:00
ba2baba7cc
Added netherite blocks and items
2022-07-14 20:39:09 +01:00
c7133bc2e6
InGamePacketHandler: don't kick the player out of inventory windows on actor events
...
this is sent when the player crafts something using an anvil.
2022-07-14 20:36:11 +01:00
d4f4fda442
Merge branch 'next-minor' into next-major
2022-07-14 19:54:50 +01:00
4d6ec66270
Merge branch 'stable' into next-minor
2022-07-14 19:54:38 +01:00
baf75089f5
Entity: cancel fire damage for fireproof entities
2022-07-14 19:53:25 +01:00
b4ce5ed515
ItemDeserializer: throw a more specific exception on unknown items
2022-07-14 19:16:15 +01:00
eb8fb63409
Added cartography and smithing tables
...
these have working inventories, and their crafting menus will 'just work' once the items for the associated recipes have been implemented (maps, netherite).
2022-07-14 18:01:47 +01:00
705df7d508
EffectManager: remove redundant check ( #5153 )
2022-07-14 17:56:18 +01:00
91719051e2
BlockStateToBlockObjectDeserializer: removed TODO mess
...
these were useful when writing the initial version from scratch; not so much for implementing random blocks
2022-07-14 16:50:08 +01:00
d321094081
Added hanging roots
2022-07-14 16:47:55 +01:00
323d31005f
Added glowing item frames
2022-07-14 16:24:20 +01:00
0c7370e564
Added wither rose
2022-07-14 16:07:16 +01:00
3dd4c42fd3
Merge branch 'next-minor' into next-major
2022-07-14 16:06:35 +01:00
f1a63098bd
Merge branch 'stable' into next-minor
2022-07-14 16:06:15 +01:00
75d7adfb2d
WitherEffect: fixed incorrect damage interval
2022-07-14 16:05:35 +01:00
7dd8876515
TNT: remove the old unreliable way of ignition on burning arrow collide
2022-07-14 00:23:12 +01:00
d0067cfac5
TNT now ignites when hit by a burning projectile
2022-07-14 00:12:02 +01:00
eafc23c756
Added candles and cakes with candles
2022-07-13 23:54:41 +01:00
20cb67461f
Block: add the current class to the exception messages for block runtime data serialization
2022-07-13 19:50:35 +01:00
8b2d941502
Offset integer ranges in runtime block data serialization
...
this is useful for stuff like snow layers where the range doesn't start at 0.
2022-07-13 19:49:30 +01:00
dea0207e4e
Merge branch 'next-minor' into next-major
2022-07-13 17:06:04 +01:00
4b1052022c
Merge branch 'stable' into next-minor
2022-07-13 17:00:58 +01:00
32f9fcd4e9
Ignore coral_hang_type_bit on coral_fan_hang3
...
it's always written, but never used.
2022-07-13 16:38:37 +01:00