SpongePowered / Sponge

The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms.
MIT License
390 stars 211 forks source link

Allow querying block entity data from archetype #3931

Closed aromaa closed 6 months ago

aromaa commented 11 months ago

Allows creating a BlockEntityArchetype from a BlockSnapshot that is able to query the underlying block entity data. Gabi has some concerns regarding this how it interacts with mods. With the old API 7 system we had problems with tile entities related to the block operations but is the impact here now as big as it was?

This data would be only available when a plugin developer asks for it and the mods do not have access to the Level which they came from which limits the bad things mods could do. Imo no mod should do anything that has side effects in serialization and we should instead ask them to do something alternative.