#How can I determine position from a blockState?

3 messages · Page 1 of 1 (latest)

tropic fjord
#

I want to use level.getBlockStates(AABB) to get a stream of blockStates, how do I figure out what each blocks position in the world is from the blockstate?
Is there a method or function for this?

toxic ivyBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

tropic fjord
#

For some more details, the return is an Internal.BlockState which i think == net.minecraft.world.level.block.state.BlockState
Is there really no way from the blockstate to determine a position? I swore i saw there was somewhere scrolling through this server but It looks like I was wrong.

As far as other methods to guess position, In order to process many, very large areas, I'm grouping, splitting up, and just generally messing with the block stream, so I don't think determining position from iterator order would work for me.

Looks like, unless someone can correct me I'll stick to using $BlockPos's block stream functionalities....