Player as CompositeValueStore

Hey everyone,

I was trying to access all the data stored in the value stores/containers on a Player, when I noticed that when using player.getFoodData() (which internally uses .get(FoodData.class) I can access the FoodData stored on the player, but when using player.getContainers() the FoodData is not listed.

Is this a bug, is this on purpose, or am I misunderstanding something?

Looking into the implementation, it seems that getContainers() is not actually implemented for some reason.

Would be good if you could post an issue:

It is, we just need to have supplyVanillaContainers return FoodData for players.

@Valandur I’ll get this fixed.

1 Like

Awesome, thanks!

@Aaron1011 btw I just noticed the DisplayNameData is missing too, but I’m assuming thats part of the same issue.