37 SpreadPlayersCommand& operator=(SpreadPlayersCommand
const&);
38 SpreadPlayersCommand(SpreadPlayersCommand
const&);
39 SpreadPlayersCommand();
46 virtual ~SpreadPlayersCommand() =
default;
52 MCAPI
static bool _checkPositionValid(
55 ::std::optional<short> maxHeight,
56 ::std::map<
::ChunkPos, ::std::unique_ptr<::CommandArea>>& areas,
61 _getTeleportHeight(
::BlockSource& region,
int x, ::std::optional<short> maxHeight,
int z,
int commandVersion);
63 MCAPI
static float _setPlayerPositions(
65 ::std::vector<::Vec2>& positions,
66 ::std::optional<short> maxHeight,
67 ::std::map<
::ChunkPos, ::std::unique_ptr<::CommandArea>>& areas,
71 MCAPI
static bool _spreadEntities(
77 float maxDistFromCenter,
78 ::std::optional<short> maxHeight,
82 MCAPI static ::std::vector<::Vec2>
85 MCAPI
static bool isDangerousSpawn(
89 ::std::optional<short> maxHeight,
95 MCAPI
static bool spreadPositions(
103 ::std::vector<::Vec2>& positions,
104 ::std::optional<short> maxHeight,
105 ::std::map<
::ChunkPos, ::std::unique_ptr<::CommandArea>>& areas,