Placing custom blocks

Say I have a ItemStack with custom data, that represents a custom block. When I place that item, the data does not transfer from the ItemStack to the BlockSnapshot for obvious reasons. So is there any way of getting the ItemStack the block placed came from or something else of similar nature?

What I’m going for is when the block is placed its identified as a custom block and the location of that block is stored locally for later use.

You could get the item stack from the cause of the ChangeBlockEvent.Place.

Only cause ChangeBlockEvent.Place returns is Player

I heard there were plans to put the ItemStack in there.

In the mean time, try using event.getCause().last(Player.class).get().getItemInHand().get().

I hope so. Tried that too. It appears theChangeBlockEvent.Place event fires after the item has been removed from inventory.

any word on this? I decided to see if sponge was ready for me to port a few plugins over, but this is essential functionality.