I can't seem to find what my bed spawn point is.
I tried
BlockPos bedLocation = player.getBedLocation();
and
BlockPos spawnPt = player.getBedSpawnLocation(world , bedLocation, false);
but they both give me the world spawn point which is the same as
World world = Minecraft.getMinecraft().world;
spawnPt = world.getSpawnPoint();
This seems like a very simple question but I could not seem to find an answer anywhere. Any help is appreciated.