SpongePowered / Sponge

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

Fire ValueChange event for entities when plugins offer data #3992

Closed aromaa closed 6 months ago

aromaa commented 6 months ago

We now fire ChangeDataHolderEvent.ValueChange for entities when plugins offer data if the entity is spawned in the world. Limiting this to entities only should make this fairly more simpler and we can later expand on the support for more potential use cases.

Supporting this for item stacks is a bit problematic as it can be literally anywhere but they do have reference to a potential entity holder which we could use to check against whatever its worthwhile.

cc @gabizou api8/all-key-value-changes