package moe.ymc.acron.net; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.Vec2f; import net.minecraft.util.math.Vec3d; import org.jetbrains.annotations.NotNull; public record ClientConfiguration(@NotNull Vec3d pos, @NotNull Vec2f rot, @NotNull ServerWorld world, @NotNull String name) { public ClientConfiguration(@NotNull ServerWorld world, @NotNull String name) { // Rcon defaults. @see RconCommandOutput this(Vec3d.of(world.getSpawnPos()), Vec2f.ZERO, world, name); } }