Closed Techcable closed 8 years ago
Why is this better than storing the data inside the Entity object?
And check the Travis for your format errors.
Immutable entity data might be useful for plugins like dynmap.
@phase It still stores data inside the entity object.
public interface Entity extends MutableEntityData
This just lets plugins access/manipulate entity data independent of an entity in the world.
@minecrafter @phase Is this good to go through?
lgtm
There are immutable and mutable versions of each entity, and factories to create both. Plugins can also take thread-safe snapshots of entities, and copy from a data object to an entity.
I'm putting this here for your input/review, since this is a major change that has large ramifications. We're going to have to define data for every single entity!